Commit bd371396 authored by Zachary Amsden's avatar Zachary Amsden Committed by Avi Kivity

KVM: x86: fix -DDEBUG oops

Fix a slight error with assertion in local APIC code.
Signed-off-by: default avatarZachary Amsden <zamsden@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 1047df1f
...@@ -329,7 +329,7 @@ int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source, ...@@ -329,7 +329,7 @@ int kvm_apic_match_dest(struct kvm_vcpu *vcpu, struct kvm_lapic *source,
"dest_mode 0x%x, short_hand 0x%x\n", "dest_mode 0x%x, short_hand 0x%x\n",
target, source, dest, dest_mode, short_hand); target, source, dest, dest_mode, short_hand);
ASSERT(!target); ASSERT(target);
switch (short_hand) { switch (short_hand) {
case APIC_DEST_NOSHORT: case APIC_DEST_NOSHORT:
if (dest_mode == 0) if (dest_mode == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment