Commit 4088bb3c authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity

KVM: silence lapic kernel messages that can be triggered by a guest

Some Linux versions (f8) try to read EOI register that is write only.
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent a1b37100
...@@ -597,14 +597,14 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len, ...@@ -597,14 +597,14 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len,
static const u64 rmask = 0x43ff01ffffffe70cULL; static const u64 rmask = 0x43ff01ffffffe70cULL;
if ((alignment + len) > 4) { if ((alignment + len) > 4) {
printk(KERN_ERR "KVM_APIC_READ: alignment error %x %d\n", apic_debug("KVM_APIC_READ: alignment error %x %d\n",
offset, len); offset, len);
return 1; return 1;
} }
if (offset > 0x3f0 || !(rmask & (1ULL << (offset >> 4)))) { if (offset > 0x3f0 || !(rmask & (1ULL << (offset >> 4)))) {
printk(KERN_ERR "KVM_APIC_READ: read reserved register %x\n", apic_debug("KVM_APIC_READ: read reserved register %x\n",
offset); offset);
return 1; return 1;
} }
......
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