[PATCH] KVM: x86: Fix cmpxchg with two 32-bit registers

2015-04-26 Thread Nadav Amit
The emulation of CMPXCHG with two register operands in 64-bit mistakenly masks the high 32-bits as it performs assignment. Fix it. Fixes: 2fcf5c8ae244b4c298d2111a288d410a719ac626 Signed-off-by: Nadav Amit na...@cs.technion.ac.il --- arch/x86/kvm/emulate.c | 2 ++ 1 file changed, 2 insertions(+)

KVM: x86: question about kvm_ioapic_destroy

2015-04-26 Thread Julia Lawall
The function kvm_ioapic_destroy is defined as follows: void kvm_ioapic_destroy(struct kvm *kvm) { struct kvm_ioapic *ioapic = kvm-arch.vioapic; cancel_delayed_work_sync(ioapic-eoi_inject); if (ioapic) { kvm_io_bus_unregister_dev(kvm, KVM_MMIO_BUS,