From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: FW: [kvm-commits] KVM: Move interrupt injection out of interruptdisabled section Date: Fri, 26 Oct 2007 12:13:57 +0200 Message-ID: <4721BDE5.4030308@qumranet.com> References: <10EA09EFD8728347A513008B6B0DA77A023EF364@pdsmsx411.ccr.corp.intel.com> <47162D74.6010408@qumranet.com> <10EA09EFD8728347A513008B6B0DA77A023EF534@pdsmsx411.ccr.corp.intel.com> <47172084.7020608@qumranet.com> <10EA09EFD8728347A513008B6B0DA77A02482B8C@pdsmsx411.ccr.corp.intel.com> <4721AFCB.1000502@qumranet.com> <10EA09EFD8728347A513008B6B0DA77A02482BF7@pdsmsx411.ccr.corp.intel.com> <4721B917.3010302@qumranet.com> <10EA09EFD8728347A513008B6B0DA77A02482C1C@pdsmsx411.ccr.corp.intel.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: "Dong, Eddie" Return-path: In-Reply-To: <10EA09EFD8728347A513008B6B0DA77A02482C1C-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@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 Dong, Eddie wrote: >> I didn't see anything in 20.8.3 regarding injection of software >> interrupts to vm86 mode. And other sections in the manual (22.5.1) >> imply that it is possible. >> >> Maybe it's failing on something else? VM-entry instruction length? I >> see that it must be in the range 1-15. >> >> > It is VM instruction failure with error # 7, which means bad VM control. > Also one difference for software interrupt is that HW will adjust guest > IP automatically. > So you could set instruction length to 1 and adjust rip backwards by 1 :) Though you may need to remember the adjustment and undo it if you get a page fault on the IVT. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/