vBAR=pBAR - Dynamically Generating DSDT?
I'm looking at the 2009 era patches for vBAR=pBAR and the more recent maintained version at davidgis.fr, and it would appear that the BAR spaces get hard-coded.
Is there a reason why this cannot be dynamically generated at domU start time? I could write a wrapper easily enough to doctor this every time I need to start a VM that generates a patch for the relevant devices and recompiles hvmloader, but this is quite a horrible way to do this.
Gordan
Quoted 11 lines · Gordan Bobic
I'm looking at the 2009 era patches for vBAR=pBAR and the more recent maintained version at davidgis.fr, and it would appear that the BAR spaces get hard-coded.
Is there a reason why this cannot be dynamically generated at domU start time? I could write a wrapper easily enough to doctor this every time I need to start a VM that generates a patch for the relevant devices and recompiles hvmloader, but this is quite a horrible way to do this.
Quoted 6 lines
Gordan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Could it be done via Xen Store? hvmloader is already capable of reading values from there. Perhaps add a new attribute there? In local/domain/0/vpci/<domain>/pbar-<bdf>?
Signature · 1 line
Sent from my Android phone. Please excuse my brevity.
Quoted 13 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Gordan Bobic
I'm looking at the 2009 era patches for vBAR=pBAR and the more recent maintained version at davidgis.fr, and it would appear that the BAR spaces get hard-coded.
Is there a reason why this cannot be dynamically generated at domU start time? I could write a wrapper easily enough to doctor this every time I need to start a VM that generates a patch for the relevant devices and recompiles hvmloader, but this is quite a horrible way to do this.
Quoted 3 lines
Could it be done via Xen Store? hvmloader is already capable of reading values from there. Perhaps add a new attribute there? In local/domain/0/vpci/<domain>/pbar-<bdf>?
Considering xenstore seems to be deprecated for storing domU configs in favour of plain text files (Windows registry, anyone?), I'm weary of going down the route of anything touching the xenstore. If it's still going to be hard-coded, I'd rather having it in the domU config file.
Detecting all the BARs from all the assigned PCI devices at domU initialization time would be better, though...
Gordan
Quoted 15 lines · Gordan Bobic
Quoted 13 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Gordan Bobic
I'm looking at the 2009 era patches for vBAR=pBAR and the more recent maintained version at davidgis.fr, and it would appear that the BAR spaces get hard-coded.
Is there a reason why this cannot be dynamically generated at domU start time? I could write a wrapper easily enough to doctor this every time I need to start a VM that generates a patch for the relevant devices and recompiles hvmloader, but this is quite a horrible way to do this.
Quoted 6 lines
Quoted 3 lines
Could it be done via Xen Store? hvmloader is already capable of reading values from there. Perhaps add a new attribute there? In local/domain/0/vpci/<domain>/pbar-<bdf>?
Considering xenstore seems to be deprecated for storing domU configs in favour of plain text files
Uhm, what?
domU configs have never been stored in xenstore.
xenstore is a runtime service used for communicating configuration information between different bits of the system and serving as a rendevous point for different parts of the system (e.g. front and backends, toolstack and hvmloader, toolstack and itself).
Quoted 4 lines
(Windows registry, anyone?), I'm weary of going down the route of anything touching the xenstore. If it's still going to be hard-coded, I'd rather having it in the domU config file.
...from where it should be written to xenstore when creating the domain in order to communicate to hvmloader where things should go.
Quoted 11 lines
Detecting all the BARs from all the assigned PCI
devices at domU initialization time would be
better, though...Gordan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 20 lines · Ian Campbell
Quoted 19 lines · Gordan Bobic
Quoted 16 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Gordan Bobic
I'm looking at the 2009 era patches for vBAR=pBAR and the more recent maintained version at davidgis.fr, and it would appear that the BAR spaces get hard-coded.
Is there a reason why this cannot be dynamically generated at domU start time? I could write a wrapper easily enough to doctor this every time I need to start a VM that generates a patch for the relevant devices and recompiles hvmloader, but this is quite a horrible way to do this.
Could it be done via Xen Store? hvmloader is already capable of reading values from there. Perhaps add a new attribute there? In local/domain/0/vpci/<domain>/pbar-<bdf>?
Quoted 6 lines
Quoted 2 lines
Considering xenstore seems to be deprecated for storing domU configs in favour of plain text files
Uhm, what?
domU configs have never been stored in xenstore.
Really? I was under the impression that this was where libvirt put them, because after configuring an xm domU using virt-manager/libvirt I could not find where the domU configuration was stored. I tried grepping the entire FS for things I thought should appear in the file, but maybe I searched for the wrong thing.
Quoted 5 lines
xenstore is a runtime service used for communicating configuration information between different bits of the system and serving as a rendevous point for different parts of the system (e.g. front and backends, toolstack and hvmloader, toolstack and itself).
Quoted 7 lines
Quoted 4 lines
(Windows registry, anyone?), I'm weary of going down the route of anything touching the xenstore. If it's still going to be hard-coded, I'd rather having it in the domU config file.
...from where it should be written to xenstore when creating the domain in order to communicate to hvmloader where things should go.
I see. Thanks for clarifying.
Gordan
Quoted 25 lines · Gordan Bobic
Quoted 23 lines · Ian Campbell
Quoted 21 lines · Gordan Bobic
Quoted 13 lines · Konrad Rzeszutek Wilk
Quoted 10 lines · Gordan Bobic
I'm looking at the 2009 era patches for vBAR=pBAR and the more recent maintained version at davidgis.fr, and it would appear that the BAR spaces get hard-coded.
Is there a reason why this cannot be dynamically generated at domU start time? I could write a wrapper easily enough to doctor this every time I need to start a VM that generates a patch for the relevant devices and recompiles hvmloader, but this is quite a horrible way to do this.
Quoted 3 lines
Could it be done via Xen Store? hvmloader is already capable of reading values from there. Perhaps add a new attribute there? In local/domain/0/vpci/<domain>/pbar-<bdf>?
Considering xenstore seems to be deprecated for storing domU configs in favour of plain text files
Quoted 8 lines
Quoted 3 lines
Uhm, what?
domU configs have never been stored in xenstore.
Really? I was under the impression that this was where libvirt put them, because after configuring an xm domU using virt-manager/libvirt I could not find where the domU configuration was stored.
I'm not an expert on libvirt but for ephermeral domains I think it creates the cfg on the fly and then I expect it discards it, since there is no reason to keep it around after starting the domain.
For persistent domains it can't be keeping them in xenstore because that doesn't persist over reboots etc.
Quoted 21 lines
I tried grepping
the entire FS for things I thought should appear in the file, but maybe I searched for the wrong thing.Quoted 5 lines
xenstore is a runtime service used for communicating configuration information between different bits of the system and serving as a rendevous point for different parts of the system (e.g. front and backends, toolstack and hvmloader, toolstack and itself).
Quoted 8 lines
Quoted 4 lines
(Windows registry, anyone?), I'm weary of going down the route of anything touching the xenstore. If it's still going to be hard-coded, I'd rather having it in the domU config file.
...from where it should be written to xenstore when creating the domain
in order to communicate to hvmloader where things should go.I see. Thanks for clarifying.
Gordan