Deleted Added
full compact
vmcs.h (222605) vmcs.h (234761)
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

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

60 struct seg_desc *desc);
61uint64_t vmcs_read(uint32_t encoding);
62
63#define vmexit_instruction_length() vmcs_read(VMCS_EXIT_INSTRUCTION_LENGTH)
64#define vmcs_guest_rip() vmcs_read(VMCS_GUEST_RIP)
65#define vmcs_instruction_error() vmcs_read(VMCS_INSTRUCTION_ERROR)
66#define vmcs_exit_reason() (vmcs_read(VMCS_EXIT_REASON) & 0xffff)
67#define vmcs_exit_qualification() vmcs_read(VMCS_EXIT_QUALIFICATION)
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

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

60 struct seg_desc *desc);
61uint64_t vmcs_read(uint32_t encoding);
62
63#define vmexit_instruction_length() vmcs_read(VMCS_EXIT_INSTRUCTION_LENGTH)
64#define vmcs_guest_rip() vmcs_read(VMCS_GUEST_RIP)
65#define vmcs_instruction_error() vmcs_read(VMCS_INSTRUCTION_ERROR)
66#define vmcs_exit_reason() (vmcs_read(VMCS_EXIT_REASON) & 0xffff)
67#define vmcs_exit_qualification() vmcs_read(VMCS_EXIT_QUALIFICATION)
68#define vmcs_guest_cr3() vmcs_read(VMCS_GUEST_CR3)
68
69#endif /* _KERNEL */
70
71#define VMCS_INITIAL 0xffffffffffffffff
72
73#define VMCS_IDENT(encoding) ((encoding) | 0x80000000)
74/*
75 * VMCS field encodings from Appendix H, Intel Architecture Manual Vol3B.

--- 251 unchanged lines hidden ---
69
70#endif /* _KERNEL */
71
72#define VMCS_INITIAL 0xffffffffffffffff
73
74#define VMCS_IDENT(encoding) ((encoding) | 0x80000000)
75/*
76 * VMCS field encodings from Appendix H, Intel Architecture Manual Vol3B.

--- 251 unchanged lines hidden ---