diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-15 10:24:01 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-24 12:54:04 -0400 |
| commit | 0c05e10bce5217657bcdaa9787c9ea94e6b384b2 (patch) | |
| tree | 07ef92c86328b9b011adf217e4dc0c4803280036 /tools/perf/scripts/python | |
| parent | KVM: x86: move all vcpu->arch.pio* setup in emulator_pio_in_out() (diff) | |
| download | linux-0c05e10bce5217657bcdaa9787c9ea94e6b384b2.tar.gz linux-0c05e10bce5217657bcdaa9787c9ea94e6b384b2.zip | |
KVM: x86: wean in-kernel PIO from vcpu->arch.pio*
Make emulator_pio_in_out operate directly on the provided buffer
as long as PIO is handled inside KVM.
For input operations, this means that, in the case of in-kernel
PIO, __emulator_pio_in() does not have to be always followed
by complete_emulator_pio_in(). This affects emulator_pio_in() and
kvm_sev_es_ins(); for the latter, that is why the call moves from
advance_sev_es_emulated_ins() to complete_sev_es_emulated_ins().
For output, it means that vcpu->pio.count is never set unnecessarily
and there is no need to clear it; but also vcpu->pio.size must not
be used in kvm_sev_es_outs(), because it will not be updated for
in-kernel OUT.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
