diff options
author | Carsten Otte <cotte@de.ibm.com> | 2007-10-29 11:09:35 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:52:58 -0500 |
commit | a03490ed29d2771c675d4d9c0ffe22e19a1757f3 (patch) | |
tree | d4ed168cbb506282d4d6dddf922a3bdea0ae2ca7 /drivers/kvm/x86.h | |
parent | 6866b83ed7240bf4a7c50836ee10f61c8534503f (diff) |
KVM: Portability: Move control register helper functions to x86.c
This patch moves the definitions of CR0_RESERVED_BITS,
CR4_RESERVED_BITS, and CR8_RESERVED_BITS along with the following
functions from kvm_main.c to x86.c:
set_cr0(), set_cr3(), set_cr4(), set_cr8(), get_cr8(), lmsw(),
load_pdptrs()
The static function wrapper inject_gp is duplicated in kvm_main.c and
x86.c for now, the version in kvm_main.c should disappear once the last
user of it is gone too.
The function load_pdptrs is no longer static, and now defined in x86.h
for the time being, until the last user of it is gone from kvm_main.c.
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86.h')
-rw-r--r-- | drivers/kvm/x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h index 20da8e9751c0..5592456c36ad 100644 --- a/drivers/kvm/x86.h +++ b/drivers/kvm/x86.h | |||
@@ -125,5 +125,5 @@ static inline int is_paging(struct kvm_vcpu *vcpu) | |||
125 | return vcpu->cr0 & X86_CR0_PG; | 125 | return vcpu->cr0 & X86_CR0_PG; |
126 | } | 126 | } |
127 | 127 | ||
128 | 128 | int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); | |
129 | #endif | 129 | #endif |