aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-04-20 08:12:00 -0400
committerAvi Kivity <avi@redhat.com>2011-05-22 08:39:08 -0400
commit1ac9d0cfb07e8ac3b5007d8279c5bd56e124250c (patch)
tree3c6b9179039511476353d4e24dd18042104f10a2 /arch/x86/include
parentfe870ab9ce1c3e64c6d6b6ee3fe53d0d029f1044 (diff)
KVM: x86 emulator: add and use new callbacks set_idt(), set_gdt()
Replacing direct calls to realmode_lgdt(), realmode_lidt(). Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h2
-rw-r--r--arch/x86/include/asm/kvm_host.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index e2b082aa3201..4d1546aa6104 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -176,6 +176,8 @@ struct x86_emulate_ops {
176 int seg); 176 int seg);
177 void (*get_gdt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt); 177 void (*get_gdt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt);
178 void (*get_idt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt); 178 void (*get_idt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt);
179 void (*set_gdt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt);
180 void (*set_idt)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *dt);
179 ulong (*get_cr)(struct x86_emulate_ctxt *ctxt, int cr); 181 ulong (*get_cr)(struct x86_emulate_ctxt *ctxt, int cr);
180 int (*set_cr)(struct x86_emulate_ctxt *ctxt, int cr, ulong val); 182 int (*set_cr)(struct x86_emulate_ctxt *ctxt, int cr, ulong val);
181 int (*cpl)(struct x86_emulate_ctxt *ctxt); 183 int (*cpl)(struct x86_emulate_ctxt *ctxt);
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index e50bffcf3cc0..a8616ca8320e 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -681,9 +681,6 @@ static inline int emulate_instruction(struct kvm_vcpu *vcpu,
681 return x86_emulate_instruction(vcpu, 0, emulation_type, NULL, 0); 681 return x86_emulate_instruction(vcpu, 0, emulation_type, NULL, 0);
682} 682}
683 683
684void realmode_lgdt(struct kvm_vcpu *vcpu, u16 size, unsigned long address);
685void realmode_lidt(struct kvm_vcpu *vcpu, u16 size, unsigned long address);
686
687void kvm_enable_efer_bits(u64); 684void kvm_enable_efer_bits(u64);
688int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *data); 685int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *data);
689int kvm_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data); 686int kvm_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data);