bhyvectl.c (259779) | bhyvectl.c (260167) |
---|---|
1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/bhyvectl/bhyvectl.c 259779 2013-12-23 19:29:07Z jhb $ | 26 * $FreeBSD: head/usr.sbin/bhyvectl/bhyvectl.c 260167 2014-01-01 21:17:08Z neel $ |
27 */ 28 29#include <sys/cdefs.h> | 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/usr.sbin/bhyvectl/bhyvectl.c 259779 2013-12-23 19:29:07Z jhb $"); | 30__FBSDID("$FreeBSD: head/usr.sbin/bhyvectl/bhyvectl.c 260167 2014-01-01 21:17:08Z neel $"); |
31 32#include <sys/param.h> 33#include <sys/types.h> 34#include <sys/sysctl.h> 35#include <sys/errno.h> 36#include <sys/mman.h> 37 38#include <stdio.h> --- 229 unchanged lines hidden (view full) --- 268 printf("\tflags\t\t%s%s\n", 269 vmexit->u.inout.string ? "STRING " : "", 270 vmexit->u.inout.rep ? "REP " : ""); 271 printf("\tport\t\t0x%04x\n", vmexit->u.inout.port); 272 printf("\teax\t\t0x%08x\n", vmexit->u.inout.eax); 273 break; 274 case VM_EXITCODE_VMX: 275 printf("\treason\t\tVMX\n"); | 31 32#include <sys/param.h> 33#include <sys/types.h> 34#include <sys/sysctl.h> 35#include <sys/errno.h> 36#include <sys/mman.h> 37 38#include <stdio.h> --- 229 unchanged lines hidden (view full) --- 268 printf("\tflags\t\t%s%s\n", 269 vmexit->u.inout.string ? "STRING " : "", 270 vmexit->u.inout.rep ? "REP " : ""); 271 printf("\tport\t\t0x%04x\n", vmexit->u.inout.port); 272 printf("\teax\t\t0x%08x\n", vmexit->u.inout.eax); 273 break; 274 case VM_EXITCODE_VMX: 275 printf("\treason\t\tVMX\n"); |
276 printf("\terror\t\t%d\n", vmexit->u.vmx.error); | 276 printf("\tstatus\t\t%d\n", vmexit->u.vmx.status); |
277 printf("\texit_reason\t0x%08x (%u)\n", 278 vmexit->u.vmx.exit_reason, vmexit->u.vmx.exit_reason); 279 printf("\tqualification\t0x%016lx\n", 280 vmexit->u.vmx.exit_qualification); | 277 printf("\texit_reason\t0x%08x (%u)\n", 278 vmexit->u.vmx.exit_reason, vmexit->u.vmx.exit_reason); 279 printf("\tqualification\t0x%016lx\n", 280 vmexit->u.vmx.exit_qualification); |
281 printf("\tinst_type\t\t%d\n", vmexit->u.vmx.inst_type); 282 printf("\tinst_error\t\t%d\n", vmexit->u.vmx.inst_error); |
|
281 break; 282 default: 283 printf("*** unknown vm run exitcode %d\n", vmexit->exitcode); 284 break; 285 } 286} 287 288static int --- 1255 unchanged lines hidden --- | 283 break; 284 default: 285 printf("*** unknown vm run exitcode %d\n", vmexit->exitcode); 286 break; 287 } 288} 289 290static int --- 1255 unchanged lines hidden --- |