xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS
@ 2020-06-02 12:58 Juergen Gross
  2020-06-02 12:58 ` [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled Juergen Gross
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Juergen Gross @ 2020-06-02 12:58 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Stefano Stabellini, Julien Grall, Wei Liu, paul,
	Andrew Cooper, Ian Jackson, George Dunlap, Jan Beulich,
	Roger Pau Monné

Fixing an issue Andrew met, and disabling CONFIG_HYPFS in pv-shim.

Juergen Gross (2):
  xen: fix build with CONFIG_HYPFS_CONFIG enabled
  xen/config: disable hypervisor filesystem for pv-shim

 xen/arch/x86/configs/pvshim_defconfig | 1 +
 xen/common/Makefile                   | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

-- 
2.26.2



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled
  2020-06-02 12:58 [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Juergen Gross
@ 2020-06-02 12:58 ` Juergen Gross
  2020-06-02 13:02   ` Jan Beulich
  2020-06-02 12:59 ` [PATCH-for-4.14 v2 2/2] xen/config: disable hypervisor filesystem for pv-shim Juergen Gross
  2020-06-02 14:30 ` [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Paul Durrant
  2 siblings, 1 reply; 6+ messages in thread
From: Juergen Gross @ 2020-06-02 12:58 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Stefano Stabellini, Julien Grall, Wei Liu, paul,
	Andrew Cooper, Ian Jackson, George Dunlap, Jan Beulich

Commit 58263ed7713e ("xen: add /buildinfo/config entry to hypervisor
filesystem") added a dependency to .config, but the hypervisor's build
config could be have another name via setting KCONFIG_CONFIG.

Fix that by using $(KCONFIG_CONFIG) instead. Additionally reference
the config file via $(XEN_ROOT) instead of a relative path.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
---
V2:
- accept an absolute path in KCONFIG_CONFIG (Jan Beulich)
---
 xen/common/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/common/Makefile b/xen/common/Makefile
index 91581e1815..fc2c8eb4a3 100644
--- a/xen/common/Makefile
+++ b/xen/common/Makefile
@@ -75,7 +75,8 @@ obj-$(CONFIG_UBSAN) += ubsan/
 obj-$(CONFIG_NEEDS_LIBELF) += libelf/
 obj-$(CONFIG_HAS_DEVICE_TREE) += libfdt/
 
-config.gz: ../.config
+CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/$(KCONFIG_CONFIG),$(KCONFIG_CONFIG))
+config.gz: $(CONF_FILE)
 	gzip -c $< >$@
 
 config_data.o: config.gz
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH-for-4.14 v2 2/2] xen/config: disable hypervisor filesystem for pv-shim
  2020-06-02 12:58 [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Juergen Gross
  2020-06-02 12:58 ` [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled Juergen Gross
@ 2020-06-02 12:59 ` Juergen Gross
  2020-06-02 14:30 ` [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Paul Durrant
  2 siblings, 0 replies; 6+ messages in thread
From: Juergen Gross @ 2020-06-02 12:59 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Wei Liu, paul, Andrew Cooper, Jan Beulich,
	Roger Pau Monné

The pv-shim doesn't need the hypervisor filesystem, so disable it.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
---
 xen/arch/x86/configs/pvshim_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/x86/configs/pvshim_defconfig b/xen/arch/x86/configs/pvshim_defconfig
index 9710aa6238..830660e022 100644
--- a/xen/arch/x86/configs/pvshim_defconfig
+++ b/xen/arch/x86/configs/pvshim_defconfig
@@ -6,6 +6,7 @@ CONFIG_PV_SHIM=y
 CONFIG_PV_SHIM_EXCLUSIVE=y
 CONFIG_NR_CPUS=32
 # Disable features not used by the PV shim
+# CONFIG_HYPFS is not set
 # CONFIG_SHADOW_PAGING is not set
 # CONFIG_BIGMEM is not set
 # CONFIG_HVM_FEP is not set
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled
  2020-06-02 12:58 ` [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled Juergen Gross
@ 2020-06-02 13:02   ` Jan Beulich
  2020-06-02 13:48     ` Jürgen Groß
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2020-06-02 13:02 UTC (permalink / raw)
  To: Juergen Gross
  Cc: Stefano Stabellini, Julien Grall, Wei Liu, paul, Andrew Cooper,
	Ian Jackson, George Dunlap, xen-devel

On 02.06.2020 14:58, Juergen Gross wrote:
> Commit 58263ed7713e ("xen: add /buildinfo/config entry to hypervisor
> filesystem") added a dependency to .config, but the hypervisor's build
> config could be have another name via setting KCONFIG_CONFIG.
> 
> Fix that by using $(KCONFIG_CONFIG) instead. Additionally reference
> the config file via $(XEN_ROOT) instead of a relative path.
> 
> Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Jan Beulich <jbeulich@suse.com>
albeit ...

> --- a/xen/common/Makefile
> +++ b/xen/common/Makefile
> @@ -75,7 +75,8 @@ obj-$(CONFIG_UBSAN) += ubsan/
>  obj-$(CONFIG_NEEDS_LIBELF) += libelf/
>  obj-$(CONFIG_HAS_DEVICE_TREE) += libfdt/
>  
> -config.gz: ../.config
> +CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/$(KCONFIG_CONFIG),$(KCONFIG_CONFIG))

... I'll be tempted to shorten this to

CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/)$(KCONFIG_CONFIG)

Jan


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled
  2020-06-02 13:02   ` Jan Beulich
@ 2020-06-02 13:48     ` Jürgen Groß
  0 siblings, 0 replies; 6+ messages in thread
From: Jürgen Groß @ 2020-06-02 13:48 UTC (permalink / raw)
  To: Jan Beulich
  Cc: Stefano Stabellini, Julien Grall, Wei Liu, paul, Andrew Cooper,
	Ian Jackson, George Dunlap, xen-devel

On 02.06.20 15:02, Jan Beulich wrote:
> On 02.06.2020 14:58, Juergen Gross wrote:
>> Commit 58263ed7713e ("xen: add /buildinfo/config entry to hypervisor
>> filesystem") added a dependency to .config, but the hypervisor's build
>> config could be have another name via setting KCONFIG_CONFIG.
>>
>> Fix that by using $(KCONFIG_CONFIG) instead. Additionally reference
>> the config file via $(XEN_ROOT) instead of a relative path.
>>
>> Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
> 
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
> albeit ...
> 
>> --- a/xen/common/Makefile
>> +++ b/xen/common/Makefile
>> @@ -75,7 +75,8 @@ obj-$(CONFIG_UBSAN) += ubsan/
>>   obj-$(CONFIG_NEEDS_LIBELF) += libelf/
>>   obj-$(CONFIG_HAS_DEVICE_TREE) += libfdt/
>>   
>> -config.gz: ../.config
>> +CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/$(KCONFIG_CONFIG),$(KCONFIG_CONFIG))
> 
> ... I'll be tempted to shorten this to
> 
> CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/)$(KCONFIG_CONFIG)

Yes, this is better.


Juergen


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS
  2020-06-02 12:58 [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Juergen Gross
  2020-06-02 12:58 ` [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled Juergen Gross
  2020-06-02 12:59 ` [PATCH-for-4.14 v2 2/2] xen/config: disable hypervisor filesystem for pv-shim Juergen Gross
@ 2020-06-02 14:30 ` Paul Durrant
  2 siblings, 0 replies; 6+ messages in thread
From: Paul Durrant @ 2020-06-02 14:30 UTC (permalink / raw)
  To: 'Juergen Gross', xen-devel
  Cc: 'Stefano Stabellini', 'Julien Grall',
	'Wei Liu', 'Andrew Cooper', 'Ian Jackson',
	'George Dunlap', 'Jan Beulich',
	'Roger Pau Monné'

> -----Original Message-----
> From: Juergen Gross <jgross@suse.com>
> Sent: 02 June 2020 13:59
> To: xen-devel@lists.xenproject.org
> Cc: paul@xen.org; Juergen Gross <jgross@suse.com>; Andrew Cooper <andrew.cooper3@citrix.com>; George
> Dunlap <george.dunlap@citrix.com>; Ian Jackson <ian.jackson@eu.citrix.com>; Jan Beulich
> <jbeulich@suse.com>; Julien Grall <julien@xen.org>; Stefano Stabellini <sstabellini@kernel.org>; Wei
> Liu <wl@xen.org>; Roger Pau Monné <roger.pau@citrix.com>
> Subject: [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS
> 
> Fixing an issue Andrew met, and disabling CONFIG_HYPFS in pv-shim.
> 
> Juergen Gross (2):
>   xen: fix build with CONFIG_HYPFS_CONFIG enabled
>   xen/config: disable hypervisor filesystem for pv-shim
> 
>  xen/arch/x86/configs/pvshim_defconfig | 1 +
>  xen/common/Makefile                   | 3 ++-
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 

Release-acked-by: Paul Durrant <paul@xen.org>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-02 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02 12:58 [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Juergen Gross
2020-06-02 12:58 ` [PATCH-for-4.14 v2 1/2] xen: fix build with CONFIG_HYPFS_CONFIG enabled Juergen Gross
2020-06-02 13:02   ` Jan Beulich
2020-06-02 13:48     ` Jürgen Groß
2020-06-02 12:59 ` [PATCH-for-4.14 v2 2/2] xen/config: disable hypervisor filesystem for pv-shim Juergen Gross
2020-06-02 14:30 ` [PATCH-for-4.14 v2 0/2] xen: build fixes for CONFIG_HYPFS Paul Durrant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).