|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] Virtualize dom0 lid
# 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 <=
|
|
|
|
|