[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel] RE: A patch to remove dcr.63 for running_on_xen indicator


  • To: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
  • From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
  • Date: Wed, 31 Aug 2005 08:27:28 -0700
  • Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 31 Aug 2005 15:26:07 +0000
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AcWYaSAKDEpFITOYRmOMPwJnp5q9pQAADjIQADg3V1AALzs7IAAA1IBAAJG2/gAAqDjkoAAncIggAKI8w2AC5B7eAAAHRMkAAB4i15A=
  • Thread-topic: A patch to remove dcr.63 for running_on_xen indicator

>       Is not xenlinux-ia64 accessing fixed address for shared 
> memory like following code from xenlinux-ia64?   This patch 
> just use same assumption.

Yes, there is code like this all over xenlinux.  But the code
that is missing in early_xen_setup looks like this: (pseudo-code)

if (running_on_xen) {
        if (hypercall_assign_shared_page_address(SHARED_PAGE_ADDR) !=
OK)
                panic("hypervisor rejects shared page address!\n");
}

So running_on_xen needs to be determined before the shared page
address is set.

>       If xenlinux support dynamic configurable share memory 
> address, this patch can simply be updated too.
>       
>       The reason to push this patch is that bit 63 of DCR may 
> be not reserved in future just like PSR.vm bit in VT-i spec. 
> Probing shared memory is just much safe.

While it is true that bit 63 of the DCR is architecturally
reserved, we will probably have several years of notice
if it is actually going to be architecturally-defined in
a future IPF implementation.  (If you know that it is
definitely going to be defined in an IPF chip before
2010, please let me know and we certainly can choose a
different bit.)

I intend to utilize dynamic configurable shared memory address
within the next 6-12 months.

Anyway, I am open to using another method (other than dcr bit 63)
to determine running_on_xen, but I am not open to defining a
fixed shared page address.

Dan

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.