diff options
author | Andre Przywara <andre.przywara@amd.com> | 2009-06-25 12:36:49 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 08:33:03 +0300 |
commit | ed85c0685321a139cefd6622b21467643f0159e1 (patch) | |
tree | eb1470a8a736886fd563b02aecbc608b4dd16d54 /virt/kvm/kvm_main.c | |
parent | 1fdbd48c242db996107f72ae4140ffe8163e26a8 (diff) | |
download | op-kernel-dev-ed85c0685321a139cefd6622b21467643f0159e1.zip op-kernel-dev-ed85c0685321a139cefd6622b21467643f0159e1.tar.gz |
KVM: introduce module parameter for ignoring unknown MSRs accesses
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: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions