From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Franco Spinelli <frspin-IWqWACnzNjyonA0d6jMUrA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Problem with Ubuntu Edgy and AMD X2
Date: Wed, 13 Dec 2006 11:32:41 +0200 [thread overview]
Message-ID: <457FC8B9.9050708@qumranet.com> (raw)
In-Reply-To: <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
Franco Spinelli wrote:
> Using dmesg command I geta lot of this error:
>
> [17192500.496000] kvm: unhandled rdmsr: 0xc0000081
>
The attached patch should fix it (we didn't handle MSR_STAR on 32-bit
AMD hosts)
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: amd-msr-star.patch --]
[-- Type: text/x-patch, Size: 1087 bytes --]
Index: kernel/svm.c
===================================================================
--- kernel/svm.c (revision 4096)
+++ kernel/svm.c (revision 4097)
@@ -402,11 +402,11 @@
set_msr_interception(msrpm_va, MSR_GS_BASE, 1, 1);
set_msr_interception(msrpm_va, MSR_FS_BASE, 1, 1);
set_msr_interception(msrpm_va, MSR_KERNEL_GS_BASE, 1, 1);
- set_msr_interception(msrpm_va, MSR_STAR, 1, 1);
set_msr_interception(msrpm_va, MSR_LSTAR, 1, 1);
set_msr_interception(msrpm_va, MSR_CSTAR, 1, 1);
set_msr_interception(msrpm_va, MSR_SYSCALL_MASK, 1, 1);
#endif
+ set_msr_interception(msrpm_va, MSR_K6_STAR, 1, 1);
set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_CS, 1, 1);
set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_ESP, 1, 1);
set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_EIP, 1, 1);
@@ -1098,10 +1098,10 @@
case MSR_IA32_APICBASE:
*data = vcpu->apic_base;
break;
-#ifdef CONFIG_X86_64
- case MSR_STAR:
+ case MSR_K6_STAR:
*data = vcpu->svm->vmcb->save.star;
break;
+#ifdef CONFIG_X86_64
case MSR_LSTAR:
*data = vcpu->svm->vmcb->save.lstar;
break;
[-- Attachment #3: Type: text/plain, Size: 347 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
prev parent reply other threads:[~2006-12-13 9:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-12 22:00 Problem with Ubuntu Edgy and AMD X2 Franco Spinelli
[not found] ` <457F268F.6090702-IWqWACnzNjyonA0d6jMUrA@public.gmane.org>
2006-12-13 8:26 ` Avi Kivity
[not found] ` <457FB929.2030504-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-12-13 8:36 ` Dor Laor
2006-12-13 9:32 ` Avi Kivity [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=457FC8B9.9050708@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=frspin-IWqWACnzNjyonA0d6jMUrA@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox