target-i386: Fill high bits of mtrr mask

Fill the bits between 51..number-of-physical-address-bits in the
MTRR_PHYSMASKn variable range mtrr masks so that they're consistent
in the migration stream irrespective of the physical address space
of the source VM in a migration.

Backports commit fcc35e7ccaed771790940524f3b0eef7aebfc9b1 from qemu
This commit is contained in:
Dr. David Alan Gilbert 2018-02-25 20:29:11 -05:00 committed by Lioncash
parent 78254267ff
commit 54851f7d74
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1188,6 +1188,9 @@ typedef struct X86CPU {
/* Number of physical address bits supported */
uint32_t phys_bits;
/* if true fill the top bits of the MTRR_PHYSMASKn variable range */
bool fill_mtrr_mask;
/* in order to simplify APIC support, we leave this pointer to the
user */
struct DeviceState *apic_state;