diff options
| author | Vitaly Kuznetsov <[email protected]> | 2022-11-01 15:53:47 +0100 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-11-18 12:59:04 -0500 |
| commit | 0823570f01989d3703751f66534a138d4fae062e (patch) | |
| tree | bba2f6065c81044acf501910c43f1e4e9a25dcff /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | adc43caa0a25746e1a9dabbab241abd01120dbfe (diff) | |
KVM: x86: hyper-v: Introduce TLB flush fifo
To allow flushing individual GVAs instead of always flushing the whole
VPID a per-vCPU structure to pass the requests is needed. Use standard
'kfifo' to queue two types of entries: individual GVA (GFN + up to 4095
following GFNs in the lower 12 bits) and 'flush all'.
The size of the fifo is arbitrarily set to '16'.
Note, kvm_hv_flush_tlb() only queues 'flush all' entries for now and
kvm_hv_vcpu_flush_tlb() doesn't actually read the fifo just resets the
queue before returning -EOPNOTSUPP (which triggers full TLB flush) so
the functional change is very small but the infrastructure is prepared
to handle individual GVA flush requests.
Reviewed-by: Sean Christopherson <[email protected]>
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions