summary refs log tree commit diff stats
path: root/hw/core/machine-qmp-cmds.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2019-06-11 17:54:20 -0300
committerEduardo Habkost <ehabkost@redhat.com>2019-07-05 17:08:03 -0300
commitfea306520ea4b2f189dd23c70a6afd2fc4ffafdc (patch)
treec4309af52e77e27d22f57fb481a8297e0ff2ee9e /hw/core/machine-qmp-cmds.c
parentcb79224b7e4b3d981c4080e60f20557739681000 (diff)
downloadfocaccia-qemu-fea306520ea4b2f189dd23c70a6afd2fc4ffafdc.tar.gz
focaccia-qemu-fea306520ea4b2f189dd23c70a6afd2fc4ffafdc.zip
i386: Don't print warning if phys-bits was set automatically
If cpu->host_phys_bits_limit is set, QEMU will make
cpu->phys_bits be lower than host_phys_bits on some cases.  This
triggers a warning that was supposed to be printed only if
phys-bits was explicitly set in the command-line.

Reorder the code so the value of cpu->phys_bits is validated
before the cpu->host_phys_bits handling.  This will avoid
unexpected warnings when cpu->host_phys_bits_limit is set.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190611205420.20286-1-ehabkost@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/machine-qmp-cmds.c')
0 files changed, 0 insertions, 0 deletions