Deleted Added
full compact
bhyverun.c (259826) bhyverun.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/bhyve/bhyverun.c 259826 2013-12-24 16:14:19Z jhb $
26 * $FreeBSD: head/usr.sbin/bhyve/bhyverun.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/bhyve/bhyverun.c 259826 2013-12-24 16:14:19Z jhb $");
30__FBSDID("$FreeBSD: head/usr.sbin/bhyve/bhyverun.c 260167 2014-01-01 21:17:08Z neel $");
31
32#include <sys/types.h>
33#include <sys/mman.h>
34#include <sys/time.h>
35
36#include <machine/atomic.h>
37#include <machine/segments.h>
38

--- 344 unchanged lines hidden (view full) ---

383static int
384vmexit_vmx(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
385{
386
387 fprintf(stderr, "vm exit[%d]\n", *pvcpu);
388 fprintf(stderr, "\treason\t\tVMX\n");
389 fprintf(stderr, "\trip\t\t0x%016lx\n", vmexit->rip);
390 fprintf(stderr, "\tinst_length\t%d\n", vmexit->inst_length);
31
32#include <sys/types.h>
33#include <sys/mman.h>
34#include <sys/time.h>
35
36#include <machine/atomic.h>
37#include <machine/segments.h>
38

--- 344 unchanged lines hidden (view full) ---

383static int
384vmexit_vmx(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
385{
386
387 fprintf(stderr, "vm exit[%d]\n", *pvcpu);
388 fprintf(stderr, "\treason\t\tVMX\n");
389 fprintf(stderr, "\trip\t\t0x%016lx\n", vmexit->rip);
390 fprintf(stderr, "\tinst_length\t%d\n", vmexit->inst_length);
391 fprintf(stderr, "\terror\t\t%d\n", vmexit->u.vmx.error);
391 fprintf(stderr, "\tstatus\t\t%d\n", vmexit->u.vmx.status);
392 fprintf(stderr, "\texit_reason\t%u\n", vmexit->u.vmx.exit_reason);
393 fprintf(stderr, "\tqualification\t0x%016lx\n",
394 vmexit->u.vmx.exit_qualification);
392 fprintf(stderr, "\texit_reason\t%u\n", vmexit->u.vmx.exit_reason);
393 fprintf(stderr, "\tqualification\t0x%016lx\n",
394 vmexit->u.vmx.exit_qualification);
395 fprintf(stderr, "\tinst_type\t\t%d\n", vmexit->u.vmx.inst_type);
396 fprintf(stderr, "\tinst_error\t\t%d\n", vmexit->u.vmx.inst_error);
395
396 return (VMEXIT_ABORT);
397}
398
399static int
400vmexit_bogus(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
401{
402

--- 345 unchanged lines hidden ---
397
398 return (VMEXIT_ABORT);
399}
400
401static int
402vmexit_bogus(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
403{
404

--- 345 unchanged lines hidden ---