Avoid direct use of xen_start_info.
A message that is not in the archive (sent off-list or not yet received): [email protected]
This is great, because on PowerPC we're looking to drop struct start_info entirely. However, I notice there are still a fair number of 'xen_start_info' references in drivers/xen. Are there more of these patches coming Steven, or since HVM guests don't use those drivers you're not pursuing them?
Quoted 8 lines · Xen patchbot-unstable
# HG changeset patch
# User [email protected]
# Node IDe061f14161b052b3287a1e41222cfa292a194fc2
# Parent9519445d9e9d7b8bd48fcd93d1bba485508ddbff[XENBUS] Avoid direct use ofxen_start_info. It's unevailable when building as a separate driver for an HVM guest.Signed-off-by Steven Smith <[email protected]>Signed-off-by Keir Fraser <[email protected]>
...
Quoted 5 lines
(quoted diff) +0
-1@@ -1014,8 +1017,13 @@ static int __init xenbus_probe_init(void if (xsd_port_intf) xsd_port_intf->read_proc = xsd_port_read; #endif - } else
Review static int __init xenbus_probe_init(void · line 1029
Quoted 10 lines
(quoted diff) +6
-0+ } else { xenstored_ready = 1; + xen_store_evtchn = xen_start_info->store_evtchn; + xen_store_mfn = xen_start_info->store_mfn; + } + + xen_store_interface = mfn_to_virt(xen_store_mfn); /* Initialize the interface to xenstore. */ err = xs_init();
Could we abstract this part more please? I think calling into an arch-provided xen_get_store_mfn() function would be good. (And of course the same for store_evtchn and the console_* equivalents.)
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
Quoted 3 lines · Hollis Blanchard
Could we abstract this part more please? I think calling into an arch-provided
xen_get_store_mfn()function would be good. (And of course the same forstore_evtchnand the console_* equivalents.)
No, that's it from Steve's patch queue. Further cleanup here would be nice though, so please send patches.
-- Keir
Quoted 5 lines
This is great, because on PowerPC we're looking to drop struct
start_infoentirely. However, I notice there are still a fair number of 'xen_start_info' references indrivers/xen. Are there more of these patches coming Steven, or since HVM guests don't use those drivers you're not pursuing them?
I wasn't planning on doing so since, as you say, none of the others are relevant to HVM guests.
Quoted 13 lines
Quoted 13 lines
(quoted diff) +6
-1@@ -1014,8 +1017,13 @@ static int __init xenbus_probe_init(void if (xsd_port_intf) xsd_port_intf->read_proc = xsd_port_read; #endif - } else + } else { xenstored_ready = 1; + xen_store_evtchn = xen_start_info->store_evtchn; + xen_store_mfn = xen_start_info->store_mfn; + } + + xen_store_interface = mfn_to_virt(xen_store_mfn);
Quoted 5 lines
Review static int __init xenbus_probe_init(void · line 1029
Quoted 2 lines
(quoted diff) +0
-0/* Initialize the interface to xenstore. */ err = xs_init();Could we abstract this part more please? I think calling into an arch-provided
xen_get_store_mfn()function would be good. (And of course the same forstore_evtchnand the console_* equivalents.)
This'd probably reduce the number of #ifdef's in the PV-on-HVM patches as well, so I'd be happy to see it.
Steven.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel