]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Set physical address bits based on host
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 11 Jul 2016 19:28:46 +0000 (20:28 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 20 Jul 2016 14:58:44 +0000 (11:58 -0300)
commit11f6fee576680a2d482123535da920f8ceb33eb5
treeccaeace2ef5f45b7135936b9bae859d9527ab2ff
parent9f3aab58539b4cc716e42e772be8116dc2e7d159
target-i386: Set physical address bits based on host

Add the host-phys-bits boolean property, if true, take phys-bits
from the hosts physical bits value, overriding either the default
or the user specified value.

We can also use the value we read from the host to check the users
explicitly set value and warn them if it doesn't match.

Note:
   a) We only read the hosts value in KVM mode (because on non-x86
      we get an abort if we try)
   b) We don't warn about trying to use host-phys-bits in TCG mode,
      we just fall back to the TCG default.  This allows the machine
      type to set the host-phys-bits flag if it wants and then to
      work in both TCG and KVM.

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/cpu.c
target-i386/cpu.h