Regression building HVM domains following "x86: add bitmap of enabled emulated devices"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Actually CC-ing xen-devel this time.
Quoted 41 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which usesxc_domain_create().xc_domain_create()itself zeros the arch configuration but passes flags straight through.As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guestin the interface, so I do not like 1) as an option.
git grepindicates that the 3 users ofxc_domain_create()are the Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a PV guest (which bypasses the issue), whereas libxl usesxc_domain_create_config(). (For the python stubs, I expect this will hit Oracle who are still using Xend to my knowledge).Option 2) is a better alternative, but will have a knock-on effect for downstream consumers of the stubs.
It is a worthwhile disruption? I can't spot a compatible option which preserves the stubs' ability to build DMLite domains.
~Andrew
El 11/11/15 a les 20.22, Andrew Cooper ha escrit:
Quoted 36 lines
Actually CC-ing xen-devel this time.
Quoted 33 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which usesxc_domain_create().xc_domain_create()itself zeros the arch configuration but passes flags straight through.As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guestin the interface, so I do not like 1) as an option.
git grepindicates that the 3 users ofxc_domain_create()are the Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a PV guest (which bypasses the issue), whereas libxl usesxc_domain_create_config(). (For the python stubs, I expect this will hit Oracle who are still using Xend to my knowledge).
Qemu upstream also uses xc_domain_create (see
hw/xenpv/xen_domainbuild.c:xen_domain_build_pv).
IMHO, I would just remove xc_domain_create and switch all users to xc_domain_create_config. I can take care of this if it seems like the best solution.
Roger.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 34 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which usesxc_domain_create().xc_domain_create()itself zeros the arch configuration but passes flags straight through.Ooops.
Quoted 22 lines
As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guestin the interface, so I do not like 1) as an option.Quoted 5 lines
git grepindicates that the 3 users ofxc_domain_create()are the Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a PV guest (which bypasses the issue), whereas libxl usesxc_domain_create_config(). (For the python stubs, I expect this will hit Oracle who are still using Xend to my knowledge).
Quoted 4 lines
We are moving to 'xl'.. and there are no Xend bits anymore.
Quoted 2 lines
Option 2) is a better alternative, but will have a knock-on effect for downstream consumers of the stubs.
But aren't xc_* calls not-release-stable?
They are indeed not, which offers the option to change the API.
Quoted 6 lines
Here is a third idea::
Make '
xc_domain_create' call 'xc_domain_create_config'. Thexc_domain_createwould synthesis the flags and we would put an 'deprecated' flag on it (whatever that means?) and remove 'xc_domain_create' in 4.7?
This is option 1. xc_domain_create() already calls xc_domain_create_config() but with a zeroed arch configuration.
The issue is that modifying xc_domain_create() will preclude their construction of DMLite domains.
~Andrew
Quoted 5 lines
Quoted 5 lines
It is a worthwhile disruption? I can't spot a compatible option which preserves the stubs' ability to build DMLite domains.
~Andrew
Quoted 43 lines · Andrew Cooper
Quoted 34 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which usesxc_domain_create().xc_domain_create()itself zeros the arch configuration but passes flags straight through.Ooops.
Quoted 22 lines
As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guestin the interface, so I do not like 1) as an option.Quoted 5 lines
git grepindicates that the 3 users ofxc_domain_create()are the Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a PV guest (which bypasses the issue), whereas libxl usesxc_domain_create_config(). (For the python stubs, I expect this will hit Oracle who are still using Xend to my knowledge).Quoted 4 lines
We are moving to 'xl'.. and there are no Xend bits anymore.
Quoted 2 lines
Option 2) is a better alternative, but will have a knock-on effect for downstream consumers of the stubs.
But aren't xc_* calls not-release-stable?
They are indeed not, which offers the option to change the API.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Here is a third idea::
Make '
xc_domain_create' call 'xc_domain_create_config'. Thexc_domain_createwould synthesis the flags and we would put an 'deprecated' flag on it (whatever that means?) and remove 'xc_domain_create' in 4.7?This is option 1.
xc_domain_create()already callsxc_domain_create_config()but with a zeroed arch configuration.
When I wrote 'flag' I mean 'arch'. Sorry about that brainfart.
Quoted 3 lines
The issue is that modifying
xc_domain_create()will preclude their construction of DMLite domains.
/me nods.
Quoted 9 lines
~Andrew
Quoted 5 lines
Quoted 5 lines
It is a worthwhile disruption? I can't spot a compatible option which preserves the stubs' ability to build DMLite domains.
~Andrew
Quoted 54 lines · Andrew Cooper
Quoted 37 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which uses xc_domain_create(). xc_domain_create() itself zeros the arch configuration but passes flags straight through.Ooops.
Quoted 24 lines
As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guestin
the interface, so I do not like 1) as an option.Quoted 6 lines
git grepindicates that the 3 users ofxc_domain_create()are the Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a PV
guest (which bypasses the issue), whereas libxl uses xc_domain_create_config(). (For the python stubs, I expect this will hit Oracle who are still using Xend to my knowledge).Quoted 5 lines
We are moving to 'xl'.. and there are no Xend bits anymore.
Quoted 3 lines
Option 2) is a better alternative, but will have a knock-on effect for
downstream consumers of the stubs.But aren't xc_* calls not-release-stable?
They are indeed not, which offers the option to change the API.
Quoted 7 lines
Here is a third idea::
Make '
xc_domain_create' call 'xc_domain_create_config'. Thexc_domain_create
would synthesis the flags and we would put an 'deprecated' flag on it (whatever that means?) and remove 'xc_domain_create' in 4.7?
Quoted 5 lines
This is option 1. xc_domain_create() already calls
xc_domain_create_config()but with a zeroed arch configuration.The issue is that modifying
xc_domain_create()will preclude their construction of DMLite domains.
I think that's ok, we would essentially be declaring that xc_domain_create_config() is the formally supported interface which can do everything while xc_domain_create() is essentially a compat shim which can only do things up to a certain point.
Users who want more would need to switch to the _config variant.
I'm half considering suggesting removing xc_domain_create(), renaming xc_domain_create_config() without the _config() and having it do some compat thing if the passed config==NULL, such that existing callers of xc_domain_create() just need to add NULL to retain their current behaviour.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 62 lines · Ian Campbell
Quoted 51 lines · Andrew Cooper
Quoted 37 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which usesxc_domain_create().xc_domain_create()itself zeros the arch configuration but passes flags straight through.Ooops.
Quoted 24 lines
As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guestin
the interface, so I do not like 1) as an option.Quoted 6 lines
git grepindicates that the 3 users ofxc_domain_create()are the Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a PV
guest (which bypasses the issue), whereas libxl usesxc_domain_create_config(). (For the python stubs, I expect this will hit Oracle who are still using Xend to my knowledge).Quoted 5 lines
We are moving to 'xl'.. and there are no Xend bits anymore.
Quoted 3 lines
Option 2) is a better alternative, but will have a knock-on effect for
downstream consumers of the stubs.But aren't xc_* calls not-release-stable?
They are indeed not, which offers the option to change the API.
Quoted 6 lines
Here is a third idea::
Make '
xc_domain_create' call 'xc_domain_create_config'. Thexc_domain_create
would synthesis the flags and we would put an 'deprecated' flag on it (whatever that means?) and remove 'xc_domain_create' in 4.7?Quoted 5 lines
This is option 1.
xc_domain_create()already callsxc_domain_create_config()but with a zeroed arch configuration.The issue is that modifying
xc_domain_create()will preclude their construction of DMLite domains.I think that's ok, we would essentially be declaring that
xc_domain_create_config()is the formally supported interface which can do everything whilexc_domain_create()is essentially a compat shim which can only do things up to a certain point.
Quoted 6 lines
Users who want more would need to switch to the
_configvariant.I'm half considering suggesting removing
xc_domain_create(), renamingxc_domain_create_config()without the_config()and having it do some compat thing if the passed config==NULL, such that existing callers ofxc_domain_create()just need to add NULL to retain their current behaviour.
That sounds best, with one modification.
In the case that NULL is passed, there should be some default filled in locally (as currently done for ARM). For x86, this should now be flags & hvm => X86_EMU_ALL, so they retain their ability to build HMV guests by passing a NULL config.
~Andrew
Quoted 81 lines · Andrew Cooper
Quoted 72 lines · Ian Campbell
Quoted 59 lines · Andrew Cooper
Quoted 43 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Andrew Cooper
Hello,
Xapi uses the Ocaml
stub_xc_domain_create()which uses xc_domain_create(). xc_domain_create() itself zeros the arch configuration but passes flags straight through.Ooops.
Quoted 27 lines
As a result of c/s
171946ab"x86: add bitmap of enabled emulated devices",xc_domain_create()can no longer be used to construct HVM
domains, failing the hypervisor-side sanity check.Needless to say, this has put a dent in XenServer's automated testing.
There are a couple of options, but neither of them are fantastic.
1) Have
xc_domain_create()fill inXEN_X86_EMU_ALLbased onXEN_DOMCTL_CDF_hvm_guestandXEN_DOMCTL_CDF_pvh_guestor
2) Mandate that all callers provide a valid arch configuration, essentially turning
xc_domain_create()intoxc_domain_create_config()Longterm, what is the plan wrt guest construction? With my x86 maintainership hat on, I don't want to keep
XEN_DOMCTL_CDF_pvh_guest
in
the interface, so I do not like 1) as an option.Quoted 9 lines
git grepindicates that the 3 users ofxc_domain_create()are the
Ocaml/Python stubs andinit-xenstore-domain.cwhich only constructs a
PV
guest (which bypasses the issue), whereas libxl uses xc_domain_create_config(). (For the python stubs, I expect this will
hit Oracle who are still using Xend to my knowledge).Quoted 6 lines
We are moving to 'xl'.. and there are no Xend bits anymore.
Quoted 4 lines
Option 2) is a better alternative, but will have a knock-on effect
for
downstream consumers of the stubs.But aren't xc_* calls not-release-stable?
They are indeed not, which offers the option to change the API.
Quoted 7 lines
Here is a third idea::
Make '
xc_domain_create' call 'xc_domain_create_config'. Thexc_domain_create
would synthesis the flags and we would put an 'deprecated' flag on it
(whatever that means?) and remove 'xc_domain_create' in 4.7?Quoted 5 lines
This is option 1. xc_domain_create() already calls
xc_domain_create_config()but with a zeroed arch configuration.The issue is that modifying
xc_domain_create()will preclude their construction of DMLite domains.I think that's ok, we would essentially be declaring that
xc_domain_create_config()is the formally supported interface which can do
everything whilexc_domain_create()is essentially a compat shim which can
only do things up to a certain point.Quoted 7 lines
Users who want more would need to switch to the
_configvariant.I'm half considering suggesting removing
xc_domain_create(), renamingxc_domain_create_config()without the_config()and having it do some compat thing if the passed config==NULL, such that existing callers ofxc_domain_create()just need to add NULL to retain their current behaviour.
Quoted 6 lines
That sounds best, with one modification.
In the case that NULL is passed, there should be some default filled in locally (as currently done for ARM). For x86, this should now be flags & hvm =>
X86_EMU_ALL, so they retain their ability to build HMV guests by passing a NULL config.
Yes, that was the "some compat thing" I was thinking of.
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel