]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Update Posted-Interrupts Descriptor when vCPU is blocked
authorFeng Wu <feng.wu@intel.com>
Fri, 18 Sep 2015 14:29:55 +0000 (22:29 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 13:06:53 +0000 (15:06 +0200)
commit91154d85ff04b7fd1cc624a1f25cdbd7c6391f9e
treecfaa21f2831d959dca9bdb4c4ad9e329fec4d5e8
parentdd3586ee7e8241e01b354ac250fca3a71e3cfa14
KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

This patch updates the Posted-Interrupts Descriptor when vCPU
is blocked.

pre-block:
- Add the vCPU to the blocked per-CPU list
- Set 'NV' to POSTED_INTR_WAKEUP_VECTOR

post-block:
- Remove the vCPU from the per-CPU list

Signed-off-by: Feng Wu <feng.wu@intel.com>
[Concentrate invocation of pre/post-block hooks to vcpu_block. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virtual/kvm/locking.txt
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c