OSDN Git Service

KVM: x86: add start_assignment hook to kvm_x86_ops
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 25 May 2021 13:41:16 +0000 (10:41 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 May 2021 11:50:13 +0000 (07:50 -0400)
commit57ab87947abfc4e0b0b9864dc4717326a1c28a39
tree31493f901bf959cfec6d22c807e9e2c05bfcd6b9
parent9805cf03fdb6828091fe09e4ef0fb544fca3eaf6
KVM: x86: add start_assignment hook to kvm_x86_ops

Add a start_assignment hook to kvm_x86_ops, which is called when
kvm_arch_start_assignment is done.

The hook is required to update the wakeup vector of a sleeping vCPU
when a device is assigned to the guest.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Message-Id: <20210525134321.254128742@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c