• Paolo Bonzini's avatar
    KVM: x86: move all vcpu->arch.pio* setup in emulator_pio_in_out() · 30d583fd
    Paolo Bonzini authored
    For now, this is basically an excuse to add back the void* argument to
    the function, while removing some knowledge of vcpu->arch.pio* from
    its callers.  The WARN that vcpu->arch.pio.count is zero is also
    extended to OUT operations.
    
    The vcpu->arch.pio* fields still need to be filled even when the PIO is
    handled in-kernel as __emulator_pio_in() is always followed by
    complete_emulator_pio_in().  But after fixing that, it will be possible to
    to only populate the vcpu->arch.pio* fields on userspace exits.
    
    No functional change intended.
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    30d583fd
x86.c 351 KB