diff options
author | Paolo Bonzini <[email protected]> | 2014-08-29 18:56:01 +0200 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2014-08-29 18:56:24 +0200 |
commit | fd2752352bbc98850d83b5448a288d8991590317 (patch) | |
tree | a465339e30e3c5416b247f1c54418b77b0d854dc /lib/test-string_helpers.c | |
parent | 13a34e067eab24fec882e1834fbf2cc31911d474 (diff) |
KVM: x86: use guest maxphyaddr to check MTRR values
The check introduced in commit d7a2a246a1b5 (KVM: x86: #GP when attempts to write reserved bits of Variable Range MTRRs, 2014-08-19)
will break if the guest maxphyaddr is higher than the host's (which
sometimes happens depending on your hardware and how QEMU is
configured).
To fix this, use cpuid_maxphyaddr similar to how the APIC_BASE MSR
does already.
Reported-by: Jan Kiszka <[email protected]>
Tested-by: Jan Kiszka <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions