Skip to contentSkip to conversation

shim: update config after vpci patches

PATCH In review Wei Liu 2 participants 5 messages Mar 27, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 shim: update config after vpci patches

---
 tools/firmware/xen-dir/shim.config | 1 +
 1 file changed, 1 insertion(+)
tools/firmware/xen-dir/shim.config +1 -0
index 4d5630f87a..05071bf436 100644
@@ -67,6 +67,7 @@ CONFIG_HAS_EHCI=y
 CONFIG_HAS_CPUFREQ=y
 CONFIG_HAS_PASSTHROUGH=y
 CONFIG_HAS_PCI=y
+CONFIG_HAS_VPCI=y
 CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
 CONFIG_ARCH_SUPPORTS_INT128=y
 
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 10 lines · Wei Liu
---
 tools/firmware/xen-dir/shim.config | 1 +
 1 file changed, 1 insertion(+)
tools/firmware/xen-dir/shim.config +0 -0
index 4d5630f87a..05071bf436 100644

tools/firmware/xen-dir/shim.config CONFIG_HAS_EHCI=y · line 70

Quoted 4 lines
tools/firmware/xen-dir/shim.config +1 -0
@@ -67,6 +67,7 @@ CONFIG_HAS_EHCI=y
 CONFIG_HAS_CPUFREQ=y
 CONFIG_HAS_PASSTHROUGH=y
 CONFIG_HAS_PCI=y
+CONFIG_HAS_VPCI=y

If the PV_SHIM_EXCLUSIVE option is selected HAS_VPCI should be forced to n, but this requires further changes to Kconfig.

Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

author
#2 lore raw
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Wei Liu
---
 tools/firmware/xen-dir/shim.config | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

tools/firmware/xen-dir/shim.config CONFIG_HAS_EHCI=y · line 70

Quoted 9 lines
tools/firmware/xen-dir/shim.config +1 -0
index 4d5630f87a..05071bf436 100644
@@ -67,6 +67,7 @@ CONFIG_HAS_EHCI=y
 CONFIG_HAS_CPUFREQ=y
 CONFIG_HAS_PASSTHROUGH=y
 CONFIG_HAS_PCI=y
+CONFIG_HAS_VPCI=y

If the PV_SHIM_EXCLUSIVE option is selected HAS_VPCI should be forced to n, but this requires further changes to Kconfig.

I agree. PCI, PASSTHROUGH and bunch of others should also be n. But I don't think we can get there any time soon.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 20 lines · Wei Liu
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Wei Liu
---
 tools/firmware/xen-dir/shim.config | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

tools/firmware/xen-dir/shim.config CONFIG_HAS_EHCI=y · line 70

Quoted 9 lines
tools/firmware/xen-dir/shim.config +1 -0
index 4d5630f87a..05071bf436 100644
@@ -67,6 +67,7 @@ CONFIG_HAS_EHCI=y
 CONFIG_HAS_CPUFREQ=y
 CONFIG_HAS_PASSTHROUGH=y
 CONFIG_HAS_PCI=y
+CONFIG_HAS_VPCI=y

If the PV_SHIM_EXCLUSIVE option is selected HAS_VPCI should be forced to n, but this requires further changes to Kconfig.

Quoted 2 lines

I agree. PCI, PASSTHROUGH and bunch of others should also be n. But I don't think we can get there any time soon.

What about using something like the following:

xen/arch/x86/Kconfig +1 -1
index c405c4bf4f..f64fc56739 100644
@@ -23,7 +23,7 @@ config X86
 	select HAS_PCI
 	select HAS_PDX
 	select HAS_UBSAN
-	select HAS_VPCI
+	select HAS_VPCI if !PV_SHIM_EXCLUSIVE
 	select NUMA
 
 config ARCH_DEFCONFIG

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

author
#4 lore raw
Quoted 31 lines · Roger Pau Monné
Quoted 20 lines · Wei Liu
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Wei Liu
---
 tools/firmware/xen-dir/shim.config | 1 +
 1 file changed, 1 insertion(+)
Quoted 12 lines

tools/firmware/xen-dir/shim.config CONFIG_HAS_EHCI=y · line 70

Quoted 9 lines
tools/firmware/xen-dir/shim.config +1 -0
index 4d5630f87a..05071bf436 100644
@@ -67,6 +67,7 @@ CONFIG_HAS_EHCI=y
 CONFIG_HAS_CPUFREQ=y
 CONFIG_HAS_PASSTHROUGH=y
 CONFIG_HAS_PCI=y
+CONFIG_HAS_VPCI=y

If the PV_SHIM_EXCLUSIVE option is selected HAS_VPCI should be forced to n, but this requires further changes to Kconfig.

Quoted 2 lines

I agree. PCI, PASSTHROUGH and bunch of others should also be n. But I don't think we can get there any time soon.

What about using something like the following:

xen/arch/x86/Kconfig +0 -0
index c405c4bf4f..f64fc56739 100644

xen/arch/x86/Kconfig config X86 · line 26

Quoted 5 lines
xen/arch/x86/Kconfig +1 -1
@@ -23,7 +23,7 @@ config X86
 	select HAS_PCI
 	select HAS_PDX
 	select HAS_UBSAN
-	select HAS_VPCI
+	select HAS_VPCI if !PV_SHIM_EXCLUSIVE

Looks OK to me.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel