aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-08-12 08:04:37 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 03:46:45 -0400
commit56e8231841301ad38e347e33fd4319c89f697045 (patch)
tree77a30a9ccb9bd2e664b32d95470f719809385280
parentc0c7c04b874bf98a10d8e0c8322a5d3bc93536bc (diff)
KVM: Rename x86_emulate.c to emulate.c
We're in arch/x86, what could we possibly be emulating? Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/x86/include/asm/kvm_emulate.h (renamed from arch/x86/include/asm/kvm_x86_emulate.h)0
-rw-r--r--arch/x86/include/asm/kvm_host.h2
-rw-r--r--arch/x86/kvm/Makefile2
-rw-r--r--arch/x86/kvm/emulate.c (renamed from arch/x86/kvm/x86_emulate.c)4
-rw-r--r--arch/x86/kvm/x86.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/include/asm/kvm_x86_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index b7ed2c423116..b7ed2c423116 100644
--- a/arch/x86/include/asm/kvm_x86_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index b17d845897b7..33901be75a36 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -138,7 +138,7 @@ enum {
138 VCPU_SREG_LDTR, 138 VCPU_SREG_LDTR,
139}; 139};
140 140
141#include <asm/kvm_x86_emulate.h> 141#include <asm/kvm_emulate.h>
142 142
143#define KVM_NR_MEM_OBJS 40 143#define KVM_NR_MEM_OBJS 40
144 144
diff --git a/arch/x86/kvm/Makefile b/arch/x86/kvm/Makefile
index afaaa7627d95..0e7fe78d0f74 100644
--- a/arch/x86/kvm/Makefile
+++ b/arch/x86/kvm/Makefile
@@ -9,7 +9,7 @@ kvm-y += $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \
9 coalesced_mmio.o irq_comm.o eventfd.o) 9 coalesced_mmio.o irq_comm.o eventfd.o)
10kvm-$(CONFIG_IOMMU_API) += $(addprefix ../../../virt/kvm/, iommu.o) 10kvm-$(CONFIG_IOMMU_API) += $(addprefix ../../../virt/kvm/, iommu.o)
11 11
12kvm-y += x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ 12kvm-y += x86.o mmu.o emulate.o i8259.o irq.o lapic.o \
13 i8254.o timer.o 13 i8254.o timer.o
14kvm-intel-y += vmx.o 14kvm-intel-y += vmx.o
15kvm-amd-y += svm.o 15kvm-amd-y += svm.o
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/emulate.c
index c6663d46f328..2eb807a7b620 100644
--- a/arch/x86/kvm/x86_emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -1,5 +1,5 @@
1/****************************************************************************** 1/******************************************************************************
2 * x86_emulate.c 2 * emulate.c
3 * 3 *
4 * Generic x86 (32-bit and 64-bit) instruction decoder and emulator. 4 * Generic x86 (32-bit and 64-bit) instruction decoder and emulator.
5 * 5 *
@@ -30,7 +30,7 @@
30#define DPRINTF(x...) do {} while (0) 30#define DPRINTF(x...) do {} while (0)
31#endif 31#endif
32#include <linux/module.h> 32#include <linux/module.h>
33#include <asm/kvm_x86_emulate.h> 33#include <asm/kvm_emulate.h>
34 34
35#include "mmu.h" /* for is_long_mode() */ 35#include "mmu.h" /* for is_long_mode() */
36 36
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 1aa7e6d91d4f..c0e942747b0f 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2759,7 +2759,7 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
2759 kvm_clear_exception_queue(vcpu); 2759 kvm_clear_exception_queue(vcpu);
2760 vcpu->arch.mmio_fault_cr2 = cr2; 2760 vcpu->arch.mmio_fault_cr2 = cr2;
2761 /* 2761 /*
2762 * TODO: fix x86_emulate.c to use guest_read/write_register 2762 * TODO: fix emulate.c to use guest_read/write_register
2763 * instead of direct ->regs accesses, can save hundred cycles 2763 * instead of direct ->regs accesses, can save hundred cycles
2764 * on Intel for instructions that don't read/change RSP, for 2764 * on Intel for instructions that don't read/change RSP, for
2765 * for example. 2765 * for example.