diff options
author | Feng Wu <feng.wu@intel.com> | 2015-09-18 22:29:54 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 15:06:53 +0200 |
commit | 28b835d60fcc2498e717cf5e6f0c3691c24546f7 (patch) | |
tree | 9c68fea3ea7c71f850c5c01b58173c66299142b8 /virt/kvm/kvm_main.c | |
parent | 87276880065246ce49ec571130d3d1e4a22e5604 (diff) |
KVM: Update Posted-Interrupts Descriptor when vCPU is preempted
This patch updates the Posted-Interrupts Descriptor when vCPU
is preempted.
sched out:
- Set 'SN' to suppress furture non-urgent interrupts posted for
the vCPU.
sched in:
- Clear 'SN'
- Change NDST if vCPU is scheduled to a different CPU
- Set 'NV' to POSTED_INTR_VECTOR
Signed-off-by: Feng Wu <feng.wu@intel.com>
[Include asm/cpu.h to fix !CONFIG_SMP compilation. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions