]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: get arch name from <cpu> element
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2012 13:49:49 +0000 (14:49 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 27 Jan 2012 15:51:50 +0000 (16:51 +0100)
commitd5e88b2c33e11bbfdfaab8ba754e4f22521ae479
tree0ca95516ff434328ee5e4e3ddeb96fa4ffa6e589
parent4be541a6d92348b2bdf8bc29ade9685f1ab24692
qemu: get arch name from <cpu> element

The qemu32 CPU model is chosen based on the <os arch=...> name when
creating the QEMU command line for a 64-bit host.  For the opposite
transformation we can test the guest CPU model for the "lm" feature.
If it is absent, def->os.arch needs to be corrected.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
src/qemu/qemu_command.c