lkml.org 
[lkml]   [2009]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 27/46] KVM: silence lapic kernel messages that can be triggered by a guest
    Date
    From: Gleb Natapov <gleb@redhat.com>

    Some Linux versions (f8) try to read EOI register that is write only.

    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    ---
    arch/x86/kvm/lapic.c | 8 ++++----
    1 files changed, 4 insertions(+), 4 deletions(-)

    diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
    index 3b03ebd..fdddf48 100644
    --- a/arch/x86/kvm/lapic.c
    +++ b/arch/x86/kvm/lapic.c
    @@ -591,14 +591,14 @@ static int apic_reg_read(struct kvm_lapic *apic, u32 offset, int len,
    static const u64 rmask = 0x43ff01ffffffe70cULL;

    if ((alignment + len) > 4) {
    - printk(KERN_ERR "KVM_APIC_READ: alignment error %x %d\n",
    - offset, len);
    + apic_debug("KVM_APIC_READ: alignment error %x %d\n",
    + offset, len);
    return 1;
    }

    if (offset > 0x3f0 || !(rmask & (1ULL << (offset >> 4)))) {
    - printk(KERN_ERR "KVM_APIC_READ: read reserved register %x\n",
    - offset);
    + apic_debug("KVM_APIC_READ: read reserved register %x\n",
    + offset);
    return 1;
    }

    --
    1.6.4.1


    \
     
     \ /
      Last update: 2009-08-23 14:11    [W:0.021 / U:30.000 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site