target/ppc: Filter mtmsr[d] input before setting MSR
[qemu/rayw.git] / accel / hvf / hvf-all.c
blobf185b0830a75ae5524723f826da2b2eda2a992d7
1 /*
2 * QEMU Hypervisor.framework support
4 * This work is licensed under the terms of the GNU GPL, version 2. See
5 * the COPYING file in the top-level directory.
7 * Contributions after 2012-01-13 are licensed under the terms of the
8 * GNU GPL, version 2 or (at your option) any later version.
9 */
11 #include "qemu/osdep.h"
12 #include "qemu-common.h"
13 #include "qemu/error-report.h"
14 #include "sysemu/hvf.h"
15 #include "sysemu/hvf_int.h"
17 void assert_hvf_ok(hv_return_t ret)
19 if (ret == HV_SUCCESS) {
20 return;
23 switch (ret) {
24 case HV_ERROR:
25 error_report("Error: HV_ERROR");
26 break;
27 case HV_BUSY:
28 error_report("Error: HV_BUSY");
29 break;
30 case HV_BAD_ARGUMENT:
31 error_report("Error: HV_BAD_ARGUMENT");
32 break;
33 case HV_NO_RESOURCES:
34 error_report("Error: HV_NO_RESOURCES");
35 break;
36 case HV_NO_DEVICE:
37 error_report("Error: HV_NO_DEVICE");
38 break;
39 case HV_UNSUPPORTED:
40 error_report("Error: HV_UNSUPPORTED");
41 break;
42 default:
43 error_report("Unknown Error");
46 abort();