mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
x86: Use common variable range MTRR counts
We currently define the number of variable range MTRR registers as 8 in the CPUX86State structure and vmstate, but use MSR_MTRRcap_VCNT (also 8) to report to guests the number available. Change this to use MSR_MTRRcap_VCNT consistently. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1844e68eca
commit
d8b5c67b05
2 changed files with 2 additions and 2 deletions
|
@ -930,7 +930,7 @@ typedef struct CPUX86State {
|
|||
/* MTRRs */
|
||||
uint64_t mtrr_fixed[11];
|
||||
uint64_t mtrr_deftype;
|
||||
MTRRVar mtrr_var[8];
|
||||
MTRRVar mtrr_var[MSR_MTRRcap_VCNT];
|
||||
|
||||
/* For KVM */
|
||||
uint32_t mp_state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue