WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Early test for Windows vs Linux hvm domain?

To: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Early test for Windows vs Linux hvm domain?
From: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Date: Thu, 31 Jan 2008 07:42:25 -0700
Delivery-date: Thu, 31 Jan 2008 06:44:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0131A9B7@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
Reply-to: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Achi1+Nj20UZxvFOQ8Ozk2RUKUhg5wAQTaGJAB1MapAAA0pbEAAegjiw
For my purposes, the definition of 'early' is before the launched guest
expects to be doing any (accurate) timekeeping.

I'm experimenting with the mechanisms in Xen for handling virtual time.
At this point, I'm looking for heuristics, not 100% accuracy, and want
to divine in hvm code whether Windows is running or Linux is running
(and, yes, I realize there are other possibilities :-)

Thanks,
Dan Magenheimer

If Xen could save time in a bottle / then clocks wouldn't virtually skew /
It would save every tick / for VMs that aren't quick /
and Xen then would send them anew
(by Dan Magenheimer... with apologies to the late great Jim Croce)

> -----Original Message-----
> From: James Harper [mailto:james.harper@xxxxxxxxxxxxxxxx]
> Sent: Wednesday, January 30, 2008 5:17 PM
> To: dan.magenheimer@xxxxxxxxxx; Xen-Devel (E-mail)
> Subject: RE: [Xen-devel] Early test for Windows vs Linux hvm domain?
> 
> 
> > 
> > Thanks to all for the 32-bit vs 64-bit ideas.  Keir's
> > EFER LME bit works like a charm.
> > 
> > Now a probably tougher (and more controversial) question:
> > 
> > Is there any algorithm or heuristic early in hvm launch that
> > can distinguish between a windows guest and a linux guest
> > (64-bit specifically, but if same or different test works
> > for 32-bit that would be useful too).
> > 
> 
> You may have mentioned it in your other thread, but what 
> exactly is the
> problem you are trying to solve here?
> 
> I would say that the answer is definitely no, depending on what your
> definition of 'early' is. A hvm domain could invoke grub, and then a
> user could then choose to run windows or Linux (or BSD, or another OS
> altogether). Does DOS work under HVM? If it does, a HVM domain could
> start DOS, the user could spend a bit of time in there, and then later
> on launch Linux from there.
> 
> James
> 
>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>