From: Keir Fraser Subject: Re: about vmxassist Date: Sat, 08 Mar 2008 17:01:09 +0000 Message-ID: References: <298d852f0803080855p429c4716ga88d583a82223205@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <298d852f0803080855p429c4716ga88d583a82223205@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: yushang Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Yes, that's why it replaces vmxassist! It more accurately simulates the real-mode environment than vmxassist was able to, hence more real-mode code runs correctly under full emulation (e.g., a wider range of bootloaders). -- Keir On 8/3/08 16:55, "yushang" wrote: > Thanks . I see . It seems the real-mode emulator is more advanced than > vmxassist ? > > 2008/3/9, Keir Fraser : >> On 8/3/08 07:11, "yushang" wrote: >> >>>>> I find the code path >>>>> will enter the native real mode if do not use vmxassist , not a >>>>> emulation one . >>> Sorry but I mean the code path of hvmloader , just at the beginning of >>> hvmloader, if do not use vmxassist execution will return from main and >>> enter real-address mode then jmp to bios , so bios will run in >>> real-address mode , is this true ? >> >> >> Yes, as soon as real mode is entered (CR0 bit 0 is cleared) Xen notices that >> and runs the guest through the full real-mode emulator until CR0 bit 0 is >> set again. >> >> >> -- Keir >> >> >>