diff options
author | Avi Kivity <avi@qumranet.com> | 2007-02-12 09:54:38 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 18:48:40 +0100 |
commit | d92899a0014aa795c21d3cf726ef5ff7684399f4 (patch) | |
tree | 6e1208d717502e8f9772227758e9fb387d398f83 | |
parent | [PATCH] kvm: Fix mmu going crazy of guest sets cr0.wp == 0 (diff) | |
download | linux-d92899a0014aa795c21d3cf726ef5ff7684399f4.tar.xz linux-d92899a0014aa795c21d3cf726ef5ff7684399f4.zip |
[PATCH] kvm: SVM: Hack initial cpu csbase to be consistent with intel
This allows us to run the mmu testsuite on amd.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/kvm/svm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 6b4de4f6c08d..4fa50bd0dceb 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c @@ -528,7 +528,13 @@ static void init_vmcb(struct vmcb *vmcb) save->cs.attrib = SVM_SELECTOR_READ_MASK | SVM_SELECTOR_P_MASK | SVM_SELECTOR_S_MASK | SVM_SELECTOR_CODE_MASK; save->cs.limit = 0xffff; - save->cs.base = 0xffff0000; + /* + * cs.base should really be 0xffff0000, but vmx can't handle that, so + * be consistent with it. + * + * Replace when we have real mode working for vmx. + */ + save->cs.base = 0xf0000; save->gdtr.limit = 0xffff; save->idtr.limit = 0xffff; |