]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: Rename x86_emulate.c to emulate.c
authorAvi Kivity <avi@redhat.com>
Wed, 12 Aug 2009 12:04:37 +0000 (15:04 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:45 +0000 (10:46 +0300)
We're in arch/x86, what could we possibly be emulating?

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h [moved from arch/x86/include/asm/kvm_x86_emulate.h with 100% similarity]
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/Makefile
arch/x86/kvm/emulate.c [moved from arch/x86/kvm/x86_emulate.c with 99% similarity]
arch/x86/kvm/x86.c

index b17d845897b797fe0f6daa1cb66b968c0e56e1eb..33901be75a36cb11a73254ebd63aa9a39ae9d7e4 100644 (file)
@@ -138,7 +138,7 @@ enum {
        VCPU_SREG_LDTR,
 };
 
-#include <asm/kvm_x86_emulate.h>
+#include <asm/kvm_emulate.h>
 
 #define KVM_NR_MEM_OBJS 40
 
index afaaa7627d95eb287872cc2b4160dcd66ae4fd1b..0e7fe78d0f7493fc3525a3564469b20ccd6da79e 100644 (file)
@@ -9,7 +9,7 @@ kvm-y                   += $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
                                coalesced_mmio.o irq_comm.o eventfd.o)
 kvm-$(CONFIG_IOMMU_API)        += $(addprefix ../../../virt/kvm/, iommu.o)
 
-kvm-y                  += x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \
+kvm-y                  += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
                           i8254.o timer.o
 kvm-intel-y            += vmx.o
 kvm-amd-y              += svm.o
similarity index 99%
rename from arch/x86/kvm/x86_emulate.c
rename to arch/x86/kvm/emulate.c
index c6663d46f328b4deafbe6f535741e0bb474aaa7e..2eb807a7b620eaa6c1b55e973c4ea1c8bcfe2bce 100644 (file)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * x86_emulate.c
+ * emulate.c
  *
  * Generic x86 (32-bit and 64-bit) instruction decoder and emulator.
  *
@@ -30,7 +30,7 @@
 #define DPRINTF(x...) do {} while (0)
 #endif
 #include <linux/module.h>
-#include <asm/kvm_x86_emulate.h>
+#include <asm/kvm_emulate.h>
 
 #include "mmu.h"               /* for is_long_mode() */
 
index 1aa7e6d91d4fe8944621b3f9a11e274adad4a903..c0e942747b0fb85bcd28161151163985c07f28a4 100644 (file)
@@ -2759,7 +2759,7 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
        kvm_clear_exception_queue(vcpu);
        vcpu->arch.mmio_fault_cr2 = cr2;
        /*
-        * TODO: fix x86_emulate.c to use guest_read/write_register
+        * TODO: fix emulate.c to use guest_read/write_register
         * instead of direct ->regs accesses, can save hundred cycles
         * on Intel for instructions that don't read/change RSP, for
         * for example.