Deleted Added
full compact
bhyverun.c (243640) bhyverun.c (243651)
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

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

448}
449
450static int
451vmexit_paging(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
452{
453 int err;
454 stats.vmexit_paging++;
455
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

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

448}
449
450static int
451vmexit_paging(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
452{
453 int err;
454 stats.vmexit_paging++;
455
456 err = emulate_mem(ctx, *pvcpu, vmexit->u.paging.gpa, vmexit->rip,
457 vmexit->u.paging.cr3, vmexit->u.paging.rwx,
456 err = emulate_mem(ctx, *pvcpu, vmexit->u.paging.gpa,
458 &vmexit->u.paging.vie);
459
460 if (err) {
461 if (err == EINVAL) {
462 fprintf(stderr,
463 "Failed to emulate instruction at 0x%lx\n",
464 vmexit->rip);
465 } else if (err == ESRCH) {

--- 306 unchanged lines hidden ---
457 &vmexit->u.paging.vie);
458
459 if (err) {
460 if (err == EINVAL) {
461 fprintf(stderr,
462 "Failed to emulate instruction at 0x%lx\n",
463 vmexit->rip);
464 } else if (err == ESRCH) {

--- 306 unchanged lines hidden ---