vmx.c (222112) | vmx.c (222605) |
---|---|
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 --- 96 unchanged lines hidden (view full) --- 105 106#define HANDLED 1 107#define UNHANDLED 0 108 109MALLOC_DEFINE(M_VMX, "vmx", "vmx"); 110 111extern struct pcpu __pcpu[]; 112 | 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 --- 96 unchanged lines hidden (view full) --- 105 106#define HANDLED 1 107#define UNHANDLED 0 108 109MALLOC_DEFINE(M_VMX, "vmx", "vmx"); 110 111extern struct pcpu __pcpu[]; 112 |
113static int vmxon_enabled[MAXCPU]; | 113int vmxon_enabled[MAXCPU]; |
114static char vmxon_region[MAXCPU][PAGE_SIZE] __aligned(PAGE_SIZE); 115 116static uint32_t pinbased_ctls, procbased_ctls, procbased_ctls2; 117static uint32_t exit_ctls, entry_ctls; 118 119static uint64_t cr0_ones_mask, cr0_zeros_mask; 120static uint64_t cr4_ones_mask, cr4_zeros_mask; 121 --- 1552 unchanged lines hidden --- | 114static char vmxon_region[MAXCPU][PAGE_SIZE] __aligned(PAGE_SIZE); 115 116static uint32_t pinbased_ctls, procbased_ctls, procbased_ctls2; 117static uint32_t exit_ctls, entry_ctls; 118 119static uint64_t cr0_ones_mask, cr0_zeros_mask; 120static uint64_t cr4_ones_mask, cr4_zeros_mask; 121 --- 1552 unchanged lines hidden --- |