]> git.proxmox.com Git - mirror_qemu.git/commit
target-i386: Mask mtrr mask based on CPU physical address limits
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 8 Jul 2016 15:01:37 +0000 (16:01 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 20 Jul 2016 14:58:43 +0000 (11:58 -0300)
commit112dad69d723a68205f255dd46d78871b5c5a8ca
tree3e0ce08aef30f30a89da841b0f66a9f9ecd9a4bb
parentaf45907a132857cfd47acc998bf5f7c26cd13071
target-i386: Mask mtrr mask based on CPU physical address limits

The CPU GPs if we try and set a bit in a variable MTRR mask above
the limit of physical address bits on the host.  We hit this
when loading a migration from a host with a larger physical
address limit than our destination (e.g. a Xeon->i7 of same
generation) but previously used to get away with it
until 48e1a45 started checking that msr writes actually worked.

It seems in our case the GP probably comes from KVM emulating
that GP.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/kvm.c