x86: remove shadow dom0 command line option
PATCH 1/1 x86: remove shadow dom0 command line option
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>
--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)
docs/misc/xen-command-line.markdown +1 -12
@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`
@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpus ### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]` > Sub-options:
@@ -675,12 +670,6 @@ Pin dom0 vcpus to their respective pcpus Flag that makes a dom0 boot in PVHv2 mode. -> `shadow` - -> Default: `false` - -Flag that makes a dom0 use shadow paging. - ### dtuart (ARM) > `= path [:options]`
xen/arch/x86/dom0_build.c +1 -9
@@ -172,10 +172,6 @@ struct vcpu *__init alloc_dom0_vcpu0(struct domain *dom0) cpumask_last(&dom0_cpus) /* so it wraps around to first pcpu */); } -#ifdef CONFIG_SHADOW_PAGING -bool __initdata opt_dom0_shadow; -boolean_param ("dom0_shadow" , opt_dom0_shadow); -#endif bool __initdata dom0_pvh;/*
@@ -196,10 +192,6 @@ static void __init parse_dom0_param(char *s)if ( !strcmp (s,"pvh" ) ) dom0_pvh = true; -#ifdef CONFIG_SHADOW_PAGING - else if ( !strcmp(s, "shadow") ) - opt_dom0_shadow = true; -#endif s = ss +1 ; }while ( ss );
@@ -253,7 +245,7 @@ unsigned long __init dom0_compute_nr_pages( } need_paging =is_hvm_domain (d) ? !iommu_hap_pt_share || !paging_mode_hap (d) - : opt_dom0_shadow; + :0 ;for ( ; ; need_paging =0 ) { nr_pages = dom0_nrpages;
xen/arch/x86/pv/dom0_build.c +0 -5
@@ -870,11 +870,6 @@ int __init dom0_construct_pv(struct domain *d, regs->rsi = vstartinfo_start; regs->eflags =X86_EFLAGS_IF ; -#ifdef CONFIG_SHADOW_PAGING -if ( opt_dom0_shadow &&paging_enable (d, PG_SH_enable) ==0 ) -paging_update_paging_modes (v); -#endif -if (test_bit (XENFEAT_supervisor_mode_kernel, parms.f_required) )panic ("Dom0 requires supervisor-mode execution" );
xen/arch/x86/setup.c +1 -2
@@ -1561,8 +1561,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)if ( dom0_pvh ) { domcr_flags |= DOMCRF_hvm | - ((hvm_funcs.hap_supported && !opt_dom0_shadow) ? - DOMCRF_hap :0 ); + (hvm_funcs.hap_supported ? DOMCRF_hap :0 ); config.emulation_flags =XEN_X86_EMU_LAPIC |XEN_X86_EMU_IOAPIC ; }
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 35 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 5 lines
docs/misc/xen-command-line.markdown +1
-1@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpus ### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`
The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
docs/misc/xen-command-line.markdown Pin dom0 vcpus to their respective pcpus · line 682
Quoted 12 lines
docs/misc/xen-command-line.markdown +0
-5> Sub-options:@@ -675,12 +670,6 @@ Pin dom0 vcpus to their respective pcpus Flag that makes a dom0 boot in PVHv2 mode. -> `shadow` - -> Default: `false` - -Flag that makes a dom0 use shadow paging.
I would add "Only supported in conjunction with the pvh option".
Quoted 20 lines
docs/misc/xen-command-line.markdown +0
-1- ### dtuart (ARM) > `= path [:options]`xen/arch/x86/dom0_build.c +0
-4@@ -172,10 +172,6 @@ struct vcpu *__init alloc_dom0_vcpu0(struct domain *dom0) cpumask_last(&dom0_cpus) /* so it wraps around to first pcpu */); } -#ifdef CONFIG_SHADOW_PAGING -bool __initdata opt_dom0_shadow; -boolean_param ("dom0_shadow" , opt_dom0_shadow); -#endif bool __initdata dom0_pvh;/*
xen/arch/x86/dom0_build.c static void __init parse_dom0_param(char *s) · line 197
Quoted 10 lines
xen/arch/x86/dom0_build.c +0
-4@@ -196,10 +192,6 @@ static void __init parse_dom0_param(char *s)if ( !strcmp (s,"pvh" ) ) dom0_pvh = true; -#ifdef CONFIG_SHADOW_PAGING - else if ( !strcmp(s, "shadow") ) - opt_dom0_shadow = true; -#endif s = ss +1 ; }while ( ss );
if ( opt_dom0_shadow && !dom0_pvh )
panic("Combination of options not supported, shadow requires pvh");Or something similar.
Quoted 30 lines
xen/arch/x86/dom0_build.c +1
-1@@ -253,7 +245,7 @@ unsigned long __init dom0_compute_nr_pages( } need_paging =is_hvm_domain (d) ? !iommu_hap_pt_share || !paging_mode_hap (d) - : opt_dom0_shadow; + :0 ;for ( ; ; need_paging =0 ) { nr_pages = dom0_nrpages;xen/arch/x86/pv/dom0_build.c +0
-5@@ -870,11 +870,6 @@ int __init dom0_construct_pv(struct domain *d, regs->rsi = vstartinfo_start; regs->eflags =X86_EFLAGS_IF ; -#ifdef CONFIG_SHADOW_PAGING -if ( opt_dom0_shadow &&paging_enable (d, PG_SH_enable) ==0 ) -paging_update_paging_modes (v); -#endif -if (test_bit (XENFEAT_supervisor_mode_kernel, parms.f_required) )panic ("Dom0 requires supervisor-mode execution" );xen/arch/x86/setup.c +0
-0
xen/arch/x86/setup.c void __init noreturn __start_xen(unsigned long mbi_p) · line 1564
Quoted 6 lines
xen/arch/x86/setup.c +1
-2@@ -1561,8 +1561,7 @@ void __init noreturn __start_xen(unsigned long mbi_p)if ( dom0_pvh ) { domcr_flags |= DOMCRF_hvm | - ((hvm_funcs.hap_supported && !opt_dom0_shadow) ? - DOMCRF_hap :0 ); + (hvm_funcs.hap_supported ? DOMCRF_hap :0 );
The chunk above needs to stay.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpus
Quoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 46 lines · George Dunlap
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpusQuoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
Quoted 3 lines
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
My thought as well.
The semantics can't change.
Shadow PVH dom0 is fine, but it should be added in another patch.
Wei.
Quoted 3 lines
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 51 lines · Wei Liu
Quoted 46 lines · George Dunlap
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpusQuoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
Quoted 3 lines
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
Quoted 5 lines
My thought as well.
The semantics can't change.
Shadow PVH dom0 is fine, but it should be added in another patch.
I'm not following this, the dom0=... option was added by me for PVHv2 Dom0, dom0=pvh,shadow has always been valid. What's the problem with that?
It's always been possible to specify dom0=pvh,shadow since PVHv2 Dom0 was introduced, there's no change here at all.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 56 lines · Roger Pau Monné
Quoted 55 lines · Wei Liu
Quoted 46 lines · George Dunlap
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpusQuoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
Quoted 3 lines
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
My thought as well.
The semantics can't change.
Quoted 7 lines
Quoted 1 line
Shadow PVH dom0 is fine, but it should be added in another patch.
I'm not following this, the dom0=... option was added by me for PVHv2 Dom0, dom0=pvh,shadow has always been valid. What's the problem with that?
It's always been possible to specify dom0=pvh,shadow since PVHv2 Dom0 was introduced, there's no change here at all.
If dom0= has never been released, then we can change it however we like.
In that case, we need to update the docs to reflect that.
Wei.
Quoted 2 lines
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 62 lines · Wei Liu
Quoted 61 lines · Roger Pau Monné
Quoted 51 lines · Wei Liu
Quoted 46 lines · George Dunlap
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpusQuoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
Quoted 3 lines
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
Quoted 5 lines
My thought as well.
The semantics can't change.
Shadow PVH dom0 is fine, but it should be added in another patch.
I'm not following this, the dom0=... option was added by me for PVHv2 Dom0, dom0=pvh,shadow has always been valid. What's the problem with that?
Quoted 6 lines
Quoted 2 lines
It's always been possible to specify dom0=pvh,shadow since PVHv2 Dom0 was introduced, there's no change here at all.
If dom0= has never been released, then we can change it however we like.
In that case, we need to update the docs to reflect that.
If what you want to do is make dom0=shadow imply pvh, I think that's wrong. IMHO dom0=shadow alone shouldn't be valid, and should always be dom0=shadow,pvh, as I noted in the comment I've made to the command line documentation and the code that checks the dom0=... string.
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 66 lines · Roger Pau Monné
Quoted 65 lines · Wei Liu
Quoted 63 lines · Roger Pau Monné
Quoted 51 lines · Wei Liu
Quoted 46 lines · George Dunlap
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpusQuoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
Quoted 3 lines
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
Quoted 5 lines
My thought as well.
The semantics can't change.
Shadow PVH dom0 is fine, but it should be added in another patch.
I'm not following this, the dom0=... option was added by me for PVHv2 Dom0, dom0=pvh,shadow has always been valid. What's the problem with that?
It's always been possible to specify dom0=pvh,shadow since PVHv2 Dom0 was introduced, there's no change here at all.
Quoted 9 lines
Quoted 3 lines
If dom0= has never been released, then we can change it however we like.
In that case, we need to update the docs to reflect that.
If what you want to do is make dom0=shadow imply pvh, I think that's wrong. IMHO dom0=shadow alone shouldn't be valid, and should always be dom0=shadow,pvh, as I noted in the comment I've made to the command line documentation and the code that checks the dom0=... string.
But the doc as-is suggests it is either "pvh" or "shadow". Or did I misunderstand your intent?
What I suggest is the doc should be updated to
= pvh[,shadow]
Quoted 1 line
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 71 lines · Wei Liu
Quoted 70 lines · Roger Pau Monné
Quoted 68 lines · Wei Liu
Quoted 56 lines · Roger Pau Monné
Quoted 55 lines · Wei Liu
Quoted 46 lines · George Dunlap
Quoted 38 lines · Roger Pau Monné
Quoted 37 lines · Wei Liu
It has been broken for years and couldn't possibly be configured after 4045953.
Remove code and documentation.
Signed-off-by Wei Liu <[email protected]>---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: George Dunlap <[email protected]>--- docs/misc/xen-command-line.markdown | 13 +------------ xen/arch/x86/dom0_build.c | 10 +--------- xen/arch/x86/pv/dom0_build.c | 5 ----- xen/arch/x86/setup.c | 3 +-- 4 files changed, 3 insertions(+), 28 deletions(-)docs/misc/xen-command-line.markdown +0
-5@@ -652,11 +652,6 @@ restrictions set up here. Note that the values to be specified here are ACPI PXM ones, not Xen internal node numbers. `relaxed` sets up vCPU affinities to prefer but be not limited to the specified node(s). -### dom0\_shadow -> `= <boolean>` - -This option is deprecated, please use `dom0=shadow` instead. - ### dom0\_vcpus\_pin > `= <boolean>`@@ -665,7 +660,7 @@ This option is deprecated, please use `dom0=shadow` instead. Pin dom0 vcpus to their respective pcpusQuoted 6 lines
docs/misc/xen-command-line.markdown This option is deprecated, please use `dom0=shadow` instead. · line 663
Quoted 3 lines
docs/misc/xen-command-line.markdown +1
-1### dom0 -> `= List of [ pvh | shadow ]` +> `= List of [ pvh ]`The shadow option here needs to be kept, in case someone wants to create a PVHv2 Dom0 with shadow instead of hap.
Quoted 3 lines
You can't change the meaning of "dom0=shadow" from "Make a PV dom0 running in autotranslate mode" to "Make a PVH dom0 running in shadow mode rather than HAP". :-)
My thought as well.
The semantics can't change.
Quoted 7 lines
Quoted 1 line
Shadow PVH dom0 is fine, but it should be added in another patch.
I'm not following this, the dom0=... option was added by me for PVHv2 Dom0, dom0=pvh,shadow has always been valid. What's the problem with that?
It's always been possible to specify dom0=pvh,shadow since PVHv2 Dom0 was introduced, there's no change here at all.
If dom0= has never been released, then we can change it however we like.
In that case, we need to update the docs to reflect that.
Quoted 8 lines
Quoted 5 lines
If what you want to do is make dom0=shadow imply pvh, I think that's wrong. IMHO dom0=shadow alone shouldn't be valid, and should always be dom0=shadow,pvh, as I noted in the comment I've made to the command line documentation and the code that checks the dom0=... string.
But the doc as-is suggests it is either "pvh" or "shadow". Or did I misunderstand your intent?
Oh, then it's my fault for wording this incorrectly. This option takes a list of the following sub-options, like the "iommu" option.
Quoted 3 lines
What I suggest is the doc should be updated to
= pvh[,shadow]
Not sure if we want to make the pvh sub-option mandatory, maybe at some point we will also add pv specific sub-options to this list?
Roger.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
On Fri, Mar 24, 2017 at 06:34:14PM +0000, Roger Pau Monné wrote:
[...]
Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
Quoted 6 lines
Quoted 2 lines
It's always been possible to specify dom0=pvh,shadow since PVHv2 Dom0 was introduced, there's no change here at all.
If dom0= has never been released, then we can change it however we like.
In that case, we need to update the docs to reflect that.
If what you want to do is make dom0=shadow imply pvh, I think that's wrong. IMHO dom0=shadow alone shouldn't be valid, and should always be dom0=shadow,pvh, as I noted in the comment I've made to the command line documentation and the code that checks the dom0=... string.
Quoted 6 lines
Quoted 2 lines
But the doc as-is suggests it is either "pvh" or "shadow". Or did I misunderstand your intent?
Oh, then it's my fault for wording this incorrectly. This option takes a list of the following sub-options, like the "iommu" option.
Hmm...
"List" is a defined data type. When you say "list of ...", it is clearly defined. But the way those options are presented is a bit confusing to me.
Normally I would use "," instead of "|" to separate those elements. But I guess that is just my personal taste.
Quoted 7 lines
Quoted 3 lines
What I suggest is the doc should be updated to
= pvh[,shadow]
Not sure if we want to make the pvh sub-option mandatory, maybe at some point we will also add pv specific sub-options to this list?
OK. (Not going to bikeshed this any further)
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel