diff options
author | Thomas Huth | 2016-02-18 22:01:56 +0100 |
---|---|---|
committer | David Gibson | 2016-02-25 03:58:44 +0100 |
commit | 388e47c75be411979c420abbc76a250597f4ea94 (patch) | |
tree | 072c94ed27257033a7834c2ba9ea216bea669f8a /hw/pci/pci.c | |
parent | ppc/kvm: Use error_report() instead of cpu_abort() for user-triggerable errors (diff) | |
download | qemu-388e47c75be411979c420abbc76a250597f4ea94.tar.gz qemu-388e47c75be411979c420abbc76a250597f4ea94.tar.xz qemu-388e47c75be411979c420abbc76a250597f4ea94.zip |
ppc/kvm: Tell the user what might be wrong when using bad CPU types with kvm-hv
Using a CPU type that does not match the host is not possible when using
the kvm-hv kernel module - the PVR is checked in the kernel function
kvm_arch_vcpu_ioctl_set_sregs_hv() and rejected with -EINVAL if it
does not match the host.
However, when the user tries to specify a non-matching CPU type, QEMU
currently only reports "kvm_init_vcpu failed: Invalid argument", and
this is of course not very helpful for the user to solve the problem.
So this patch adds a more descriptive error message that tells the
user to specify "-cpu host" instead.
Signed-off-by: Thomas Huth <thuth@redhat.com>
[Removed melodramatic '!' :)]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/pci/pci.c')
0 files changed, 0 insertions, 0 deletions