pseries: Under kvm use guest cpu = host cpu by default
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Oct 2011 22:40:34 +0000 (22:40 +0000)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Oct 2011 16:11:54 +0000 (17:11 +0100)
commit8952a50cd469e5d756c14e310adaa00be301d940
tree2889d73500b9f674e3e9741936e7280d37e4f6c3
parentb4d86d3c8e7efc154ec3aed18ce410fc84fbe915
pseries: Under kvm use guest cpu = host cpu by default

Now that we've implemented -cpu host for ppc, this patch updates the
pseries machine to use the host cpu as the guest cpu by default when
running under KVM.  This is important because under KVM Book3S-HV the guest
cpu _cannot_ be of a different type to the host cpu (at the moment
KVM Book3S-HV will silently virtualize the host cpu instead of whatever was
requested, but in future it is likely to simply refuse to run the VM if
a cpu model other than the host's is requested).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr.c