Skip to content
Snippets Groups Projects
Select Git revision
  • b64d39d8b03fea88417d53715ccbebf71d4dcc9f
  • openEuler-1.0-LTS default protected
  • openEuler-22.09
  • OLK-5.10
  • openEuler-22.03-LTS
  • openEuler-22.03-LTS-Ascend
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 4.19.90-2210.5.0
  • 5.10.0-123.0.0
  • 5.10.0-60.63.0
  • 5.10.0-60.62.0
  • 4.19.90-2210.4.0
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
33 results

nand_base.c

Blame
  • vmx.c 342.35 KiB
    /*
     * Kernel-based Virtual Machine driver for Linux
     *
     * This module enables machines with Intel VT-x extensions to run virtual
     * machines without emulation or binary translation.
     *
     * Copyright (C) 2006 Qumranet, Inc.
     * Copyright 2010 Red Hat, Inc. and/or its affiliates.
     *
     * Authors:
     *   Avi Kivity   <avi@qumranet.com>
     *   Yaniv Kamay  <yaniv@qumranet.com>
     *
     * This work is licensed under the terms of the GNU GPL, version 2.  See
     * the COPYING file in the top-level directory.
     *
     */
    
    #include "irq.h"
    #include "mmu.h"
    #include "cpuid.h"
    #include "lapic.h"
    
    #include <linux/kvm_host.h>
    #include <linux/module.h>
    #include <linux/kernel.h>
    #include <linux/mm.h>
    #include <linux/highmem.h>
    #include <linux/sched.h>
    #include <linux/moduleparam.h>
    #include <linux/mod_devicetable.h>
    #include <linux/trace_events.h>
    #include <linux/slab.h>
    #include <linux/tboot.h>
    #include <linux/hrtimer.h>
    #include <linux/frame.h>
    #include "kvm_cache_regs.h"
    #include "x86.h"
    
    #include <asm/cpu.h>
    #include <asm/io.h>
    #include <asm/desc.h>
    #include <asm/vmx.h>
    #include <asm/virtext.h>
    #include <asm/mce.h>
    #include <asm/fpu/internal.h>
    #include <asm/perf_event.h>
    #include <asm/debugreg.h>
    #include <asm/kexec.h>
    #include <asm/apic.h>
    #include <asm/irq_remapping.h>
    #include <asm/mmu_context.h>
    
    #include "trace.h"
    #include "pmu.h"
    
    #define __ex(x) __kvm_handle_fault_on_reboot(x)
    #define __ex_clear(x, reg) \
    	____kvm_handle_fault_on_reboot(x, "xor " reg " , " reg)
    
    MODULE_AUTHOR("Qumranet");
    MODULE_LICENSE("GPL");
    
    static const struct x86_cpu_id vmx_cpu_id[] = {
    	X86_FEATURE_MATCH(X86_FEATURE_VMX),
    	{}
    };
    MODULE_DEVICE_TABLE(x86cpu, vmx_cpu_id);
    
    static bool __read_mostly enable_vpid = 1;