vmcs.h (260836) | vmcs.h (261170) |
---|---|
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/sys/amd64/vmm/intel/vmcs.h 260836 2014-01-18 02:20:10Z neel $ | 26 * $FreeBSD: head/sys/amd64/vmm/intel/vmcs.h 261170 2014-01-25 20:58:05Z neel $ |
27 */ 28 29#ifndef _VMCS_H_ 30#define _VMCS_H_ 31 32#ifdef _KERNEL 33struct vmcs { 34 uint32_t identifier; --- 96 unchanged lines hidden (view full) --- 131#define VMCS_VIRTUAL_APIC 0x00002012 132#define VMCS_APIC_ACCESS 0x00002014 133#define VMCS_PIR_DESC 0x00002016 134#define VMCS_EPTP 0x0000201A 135#define VMCS_EOI_EXIT0 0x0000201C 136#define VMCS_EOI_EXIT1 0x0000201E 137#define VMCS_EOI_EXIT2 0x00002020 138#define VMCS_EOI_EXIT3 0x00002022 | 27 */ 28 29#ifndef _VMCS_H_ 30#define _VMCS_H_ 31 32#ifdef _KERNEL 33struct vmcs { 34 uint32_t identifier; --- 96 unchanged lines hidden (view full) --- 131#define VMCS_VIRTUAL_APIC 0x00002012 132#define VMCS_APIC_ACCESS 0x00002014 133#define VMCS_PIR_DESC 0x00002016 134#define VMCS_EPTP 0x0000201A 135#define VMCS_EOI_EXIT0 0x0000201C 136#define VMCS_EOI_EXIT1 0x0000201E 137#define VMCS_EOI_EXIT2 0x00002020 138#define VMCS_EOI_EXIT3 0x00002022 |
139#define VMCS_EOI_EXIT(vector) (VMCS_EOI_EXIT0 + ((vector) / 64) * 2) |
|
139 140/* 64-bit read-only fields */ 141#define VMCS_GUEST_PHYSICAL_ADDRESS 0x00002400 142 143/* 64-bit guest-state fields */ 144#define VMCS_LINK_POINTER 0x00002800 145#define VMCS_GUEST_IA32_DEBUGCTL 0x00002802 146#define VMCS_GUEST_IA32_PAT 0x00002804 --- 166 unchanged lines hidden (view full) --- 313#define EXIT_REASON_INVAL_MSR 34 314#define EXIT_REASON_MWAIT 36 315#define EXIT_REASON_MTF 37 316#define EXIT_REASON_MONITOR 39 317#define EXIT_REASON_PAUSE 40 318#define EXIT_REASON_MCE 41 319#define EXIT_REASON_TPR 43 320#define EXIT_REASON_APIC_ACCESS 44 | 140 141/* 64-bit read-only fields */ 142#define VMCS_GUEST_PHYSICAL_ADDRESS 0x00002400 143 144/* 64-bit guest-state fields */ 145#define VMCS_LINK_POINTER 0x00002800 146#define VMCS_GUEST_IA32_DEBUGCTL 0x00002802 147#define VMCS_GUEST_IA32_PAT 0x00002804 --- 166 unchanged lines hidden (view full) --- 314#define EXIT_REASON_INVAL_MSR 34 315#define EXIT_REASON_MWAIT 36 316#define EXIT_REASON_MTF 37 317#define EXIT_REASON_MONITOR 39 318#define EXIT_REASON_PAUSE 40 319#define EXIT_REASON_MCE 41 320#define EXIT_REASON_TPR 43 321#define EXIT_REASON_APIC_ACCESS 44 |
322#define EXIT_REASON_VIRTUALIZED_EOI 45 |
|
321#define EXIT_REASON_GDTR_IDTR 46 322#define EXIT_REASON_LDTR_TR 47 323#define EXIT_REASON_EPT_FAULT 48 324#define EXIT_REASON_EPT_MISCONFIG 49 325#define EXIT_REASON_INVEPT 50 326#define EXIT_REASON_RDTSCP 51 327#define EXIT_REASON_VMX_PREEMPT 52 328#define EXIT_REASON_INVVPID 53 --- 61 unchanged lines hidden --- | 323#define EXIT_REASON_GDTR_IDTR 46 324#define EXIT_REASON_LDTR_TR 47 325#define EXIT_REASON_EPT_FAULT 48 326#define EXIT_REASON_EPT_MISCONFIG 49 327#define EXIT_REASON_INVEPT 50 328#define EXIT_REASON_RDTSCP 51 329#define EXIT_REASON_VMX_PREEMPT 52 330#define EXIT_REASON_INVVPID 53 --- 61 unchanged lines hidden --- |