From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm-22 and Vista support Date: Wed, 23 May 2007 15:55:33 +0300 Message-ID: <465439C5.1010506@qumranet.com> References: <463EDAC3.80601@qumranet.com> <8FFF7E42E93CC646B632AB40643802A802941AE2@scsmsx412.amr.corp.intel.com> <59abf66e0705222011l24200847sb39394630c692b67@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030409020005030509080103" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: =?ISO-8859-1?Q?Jorge_Luc=E1ngeli_Obes?= Return-path: In-Reply-To: <59abf66e0705222011l24200847sb39394630c692b67-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------030409020005030509080103 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Jorge Luc=E1ngeli Obes wrote: > I had some time on my hands lately and tried to debug this a little. I > found that there's actually something showing in dmesg: > > [ 3872.221039] emulation failed but !mmio_needed? rip 9a12 0f 09 66 25 > > Does that help? I'm running kvm-24 now, but the exception still > happens. I've been looking through x86_emulate.c and kvmctl.c trying > to print more information but with no success yet. > =20 Does the attached patch help? It implements 0f 09, wbinvd. --=20 Do not meddle in the internals of kernels, for they are subtle and quick = to panic. --------------030409020005030509080103 Content-Type: text/x-patch; name="wbinvd.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="wbinvd.patch" diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 7ade090..6123c02 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -152,7 +152,7 @@ static u8 opcode_table[256] = { static u16 twobyte_table[256] = { /* 0x00 - 0x0F */ 0, SrcMem | ModRM | DstReg, 0, 0, 0, 0, ImplicitOps, 0, - 0, 0, 0, 0, 0, ImplicitOps | ModRM, 0, 0, + 0, ImplicitOps, 0, 0, 0, ImplicitOps | ModRM, 0, 0, /* 0x10 - 0x1F */ 0, 0, 0, 0, 0, 0, 0, 0, ImplicitOps | ModRM, 0, 0, 0, 0, 0, 0, 0, /* 0x20 - 0x2F */ @@ -1304,6 +1304,8 @@ twobyte_special_insn: /* Disable writeback. */ dst.orig_val = dst.val; switch (b) { + case 0x09: /* wbinvd */ + break; case 0x0d: /* GrpP (prefetch) */ case 0x18: /* Grp16 (prefetch/nop) */ break; --------------030409020005030509080103 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --------------030409020005030509080103 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------030409020005030509080103--