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-changelog

[Xen-changelog] [xen-unstable] [IA64] Virtualize dom0 lid

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Virtualize dom0 lid
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Aug 2006 22:20:41 +0000
Delivery-date: Wed, 09 Aug 2006 15:26:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 3f3388f3e6055419c09931a44c3a26d19a4ab9dd
# Parent  555eb7402bd8f6aed5e3f06811f8ebb1ab688c7b
[IA64] Virtualize dom0 lid

Because dom0 can't write eid/id into iosapics, lid can be virtualized.

Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
---
 xen/arch/ia64/xen/dom_fw.c |    4 ++++
 xen/arch/ia64/xen/vcpu.c   |    8 ++------
 2 files changed, 6 insertions(+), 6 deletions(-)

diff -r 555eb7402bd8 -r 3f3388f3e605 xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Tue Aug 08 14:38:10 2006 -0600
+++ b/xen/arch/ia64/xen/dom_fw.c        Tue Aug 08 14:40:57 2006 -0600
@@ -253,10 +253,14 @@ acpi_update_lsapic (acpi_table_entry_hea
                enable = 0;
        if (lsapic->flags.enabled && enable) {
                printk("enable lsapic entry: 0x%lx\n", (u64)lsapic);
+               lsapic->id = lsapic_nbr;
+               lsapic->eid = 0;
                lsapic_nbr++;
        } else if (lsapic->flags.enabled) {
                printk("DISABLE lsapic entry: 0x%lx\n", (u64)lsapic);
                lsapic->flags.enabled = 0;
+               lsapic->id = 0;
+               lsapic->eid = 0;
        }
        return 0;
 }
diff -r 555eb7402bd8 -r 3f3388f3e605 xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Tue Aug 08 14:38:10 2006 -0600
+++ b/xen/arch/ia64/xen/vcpu.c  Tue Aug 08 14:40:57 2006 -0600
@@ -763,12 +763,8 @@ UINT64 vcpu_deliverable_timer(VCPU *vcpu
 
 IA64FAULT vcpu_get_lid(VCPU *vcpu, UINT64 *pval)
 {
-       /* Use real LID for domain0 until vIOSAPIC is present.
-          Use EID=0, ID=vcpu_id for domU.  */
-       if (vcpu->domain == dom0)
-               *pval = ia64_getreg(_IA64_REG_CR_LID);
-       else
-               *pval = vcpu->vcpu_id << 24;
+       /* Use EID=0, ID=vcpu_id.  */
+       *pval = vcpu->vcpu_id << 24;
        return IA64_NO_FAULT;
 }
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Virtualize dom0 lid, Xen patchbot-unstable <=