• Andre Przywara's avatar
    KVM: introduce module parameter for ignoring unknown MSRs accesses · ed85c068
    Andre Przywara authored
    KVM will inject a #GP into the guest if that tries to access unhandled
    MSRs. This will crash many guests. Although it would be the correct
    way to actually handle these MSRs, we introduce a runtime switchable
    module param called "ignore_msrs" (defaults to 0). If this is Y, unknown
    MSR reads will return 0, while MSR writes are simply dropped. In both cases
    we print a message to dmesg to inform the user about that.
    
    You can change the behaviour at any time by saying:
    
     # echo 1 > /sys/modules/kvm/parameters/ignore_msrs
    Signed-off-by: default avatarAndre Przywara <andre.przywara@amd.com>
    Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
    ed85c068
x86.c 118 KB