Skip to contentSkip to conversation

xen: actually setup hypercalls.

PATCH In review Ian Campbell 3 participants 6 messages Jul 13, 2011 – Jul 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: actually setup hypercalls.

This was somehow dropped during the iterations of the original Xen patches. It's actually harmless at the moment since there are no users of hypercalls but patches are being written to support Xen PV block devices which need this.

It's not clear exactly how early this needs to be but I think it needs to be at least before init_hw() (since that would detect disk devices). I put it first in maininit() since the only dependency is malloc().

---
 src/post.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
src/post.c +3 -0
index d98941c..b2f6d51 100644
@@ -210,6 +210,9 @@ startBoot(void)
 static void
 maininit(void)
 {
+    // Setup Xen hypercalls
+    xen_init_hypercalls();
+
     // Setup ivt/bda/ebda
     init_ivt();
     init_bda();
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 9 lines · Ian Campbell

This was somehow dropped during the iterations of the original Xen patches. It's actually harmless at the moment since there are no users of hypercalls but patches are being written to support Xen PV block devices which need this.

It's not clear exactly how early this needs to be but I think it needs to be at least before init_hw() (since that would detect disk devices). I put it first in maininit() since the only dependency is malloc().

Ping?

Quoted 18 lines
---
 src/post.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
src/post.c +3 -0
index d98941c..b2f6d51 100644
@@ -210,6 +210,9 @@ startBoot(void)
 static void
 maininit(void)
 {
+    // Setup Xen hypercalls
+    xen_init_hypercalls();
+
     // Setup ivt/bda/ebda
     init_ivt();
     init_bda();
Signature · 3 lines
Ian Campbell

Ego sum ens omnipotens.
#2 lore raw
Quoted 5 lines · Ian Campbell
Quoted 4 lines · Ian Campbell

This was somehow dropped during the iterations of the original Xen patches. It's actually harmless at the moment since there are no users of hypercalls but patches are being written to support Xen PV block devices which need this.

Quoted 7 lines
Quoted 5 lines

It's not clear exactly how early this needs to be but I think it needs to be at least before init_hw() (since that would detect disk devices). I put it first in maininit() since the only dependency is malloc().

Ping?

Sorry for the delay. I'm okay with the patch. If it doesn't need to be at the top of maininit though, I'd prefer to move it down a bit. How about after smm_init?

-Kevin

#3 lore raw
Quoted 10 lines · Kevin O'Connor
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Ian Campbell

This was somehow dropped during the iterations of the original Xen patches. It's actually harmless at the moment since there are no users of hypercalls but patches are being written to support Xen PV block devices which need this.

It's not clear exactly how early this needs to be but I think it needs to be at least before init_hw() (since that would detect disk devices). I put it first in maininit() since the only dependency is malloc().

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Ping?

Sorry for the delay. I'm okay with the patch. If it doesn't need to be at the top of maininit though, I'd prefer to move it down a bit. How about after smm_init?

Sure, Works For Me.

8<-------------------------------------------------------------

Quoted 1 line

From 56ee604a43c2af652ffe4c2924e77175ecc693a3 Mon Sep 17 00:00:00 2001

From: Ian Campbell <[email protected]>
Date: Wed, 13 Jul 2011 11:46:40 +0100
Subject: [PATCH] xen: actually setup hypercalls.

This was somehow dropped during the iterations of the original Xen patches. It's actually harmless at the moment since there are no users of hypercalls but patches are being written to support Xen PV block devices which need this.

It's not clear exactly how early this needs to be but I think it needs to be at least before init_hw() (since that would detect disk devices).

---
 src/post.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
src/post.c +3 -0
index d98941c..eb5a311 100644
@@ -226,6 +226,9 @@ maininit(void)
     pci_setup();
     smm_init();
 
+    // Setup Xen hypercalls
+    xen_init_hypercalls();
+
     // Initialize internal tables
     boot_setup();
 
Signature · 9 lines
1.7.2.5



-- 
Ian Campbell

The last person that quit or was fired will be held responsible for
everything that goes wrong -- until the next person quits or is fired.
#4 lore raw
Quoted 7 lines · Ian Campbell
Quoted 5 lines · Kevin O'Connor
Quoted 1 line · Ian Campbell

Ping?

Sorry for the delay. I'm okay with the patch. If it doesn't need to be at the top of maininit though, I'd prefer to move it down a bit. How about after smm_init?

Sure, Works For Me.

Thanks. I applied it.

-Kevin

#5 lore raw
Quoted 10 lines · Kevin O'Connor
Quoted 7 lines · Ian Campbell
Quoted 5 lines · Kevin O'Connor
Quoted 1 line · Ian Campbell

Ping?

Sorry for the delay. I'm okay with the patch. If it doesn't need to be at the top of maininit though, I'd prefer to move it down a bit. How about after smm_init?

Sure, Works For Me.

Thanks. I applied it.

Thank you.

Ian.

Signature · 4 lines
Ian Campbell

All I can think of is a platter of organic PRUNE CRISPS being trampled
by an army of swarthy, Italian LOUNGE SINGERS ...