From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: VMExits on Software Interrupts Date: Mon, 06 Apr 2009 14:40:43 +0300 Message-ID: <49D9EA3B.5080800@redhat.com> References: <238919847.1486541238747687028.JavaMail.root@mail2.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Rastogi, Shaurya" Return-path: Received: from mx2.redhat.com ([66.187.237.31]:42347 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755594AbZDFLkt (ORCPT ); Mon, 6 Apr 2009 07:40:49 -0400 In-Reply-To: <238919847.1486541238747687028.JavaMail.root@mail2.gatech.edu> Sender: kvm-owner@vger.kernel.org List-ID: Rastogi, Shaurya wrote: > Hi, > > Is there any way to generate a VMExit for software interrupts? > > I am interested in causing a VMExit when Int 80 instruction is executed in guest VM. Is it possible to do so? If so how? > Neither vmx nor svm support trapping on software interrupts. You might be able to track changes to the IDT and install a hardware breakpoint on the int 80 handler, but that's quite difficult and hacky. -- error compiling committee.c: too many arguments to function