From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: SIGILL in grub in guest on 4365 Date: Thu, 01 Feb 2007 15:05:05 +0200 Message-ID: <45C1E581.5070709@qumranet.com> References: <45C11A7E0200005A0001EE4E@mcclure.wal.novell.com> <45C197CA0200005A0001EE9A@mcclure.wal.novell.com> <45C197E6.BA47.005A.0@novell.com><45C197E6.BA47.005A.0@novell.com> <45C1E116.1070802@qumranet.com> <45C19DBA.BA47.005A.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Gregory Haskins Return-path: In-Reply-To: <45C19DBA.BA47.005A.0-Et1tbQHTxzrQT0dZR+AlfA@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 Gregory Haskins wrote: >>>> On Thu, Feb 1, 2007 at 7:46 AM, in message <45C1E116.1070802-atKUWr5tajBWk0Htik3J/w@public.gmane.org>, >>>> > Avi Kivity wrote: > >> Gregory Haskins wrote: >> >> >>> 1) Is this how illegal- op would be handled, or would that stay entirely in >>> >> the domain of the guest? >> >>> >>> >> An illegal opcode in the guest is handled normally by generating #UD in >> the guest, without host involvement at all. >> >> > > Ah, thank you. Sounds like I need to do some more reading in the Intel docs ;) Despite my failings here, I did learn a lot about KVM/QEMU in the process so it wasnt wasted effort. > > VT allows both methods. Basically you tell it for which exceptions you want a vmexit. In kvm, we only intercept page faults (for mmu virtualization), and, if guest debugging is enabled, breakpoint exceptions. We let the guest handle the rest. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642