From: Keir Fraser Subject: Re: Paravirtualization of the "HLT" instruction (for example) on x386 Date: Thu, 12 Jan 2006 10:36:13 +0000 Message-ID: <60c562438f7299b8b178aa9b70cd6997@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Brown Cc: Xen Mailing List List-Id: xen-devel@lists.xenproject.org On 12 Jan 2006, at 09:27, Ian Brown wrote: > So I tried to find where in the Xen-3.0 code it is done. > I saw in vmx.c the vmx_vmexit_do_hlt() method ,which is called > when "HLT" is performed, but this is relevant when running a > platform with VT-x. > I am looking for tracing where this handling or modifying of > the HLT instruction is done in a usual x386 (non-VTX) processor. > > Can anybody please point where in the code of Xen 3.0 this is done > (for x86 processors)? The point of paravirtualizetion is that such instructions are replaced with explicit traps to the hypervisor in the OS. Emulation of the raw instruction is not required. In fact we do emulate some privileged instructions, just not HLT. -- Keir