* [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid()
2022-12-17 15:24 [PATCH v2 0/5] target/s390x: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
@ 2022-12-17 15:24 ` Philippe Mathieu-Daudé
2022-12-21 21:00 ` Eric Farman
2022-12-29 9:17 ` Thomas Huth
2022-12-17 15:24 ` [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init() Philippe Mathieu-Daudé
` (3 subsequent siblings)
4 siblings, 2 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-17 15:24 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, Philippe Mathieu-Daudé,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
Instead of having hardware device poking into memory
internal API, expose memory_region_access_valid().
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/s390x/s390-pci-inst.c | 2 +-
include/exec/memory-internal.h | 4 ----
include/exec/memory.h | 4 ++++
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c
index 66e764f901..35db7777e4 100644
--- a/hw/s390x/s390-pci-inst.c
+++ b/hw/s390x/s390-pci-inst.c
@@ -13,7 +13,7 @@
#include "qemu/osdep.h"
#include "exec/memop.h"
-#include "exec/memory-internal.h"
+#include "exec/memory.h"
#include "qemu/error-report.h"
#include "sysemu/hw_accel.h"
#include "hw/s390x/s390-pci-inst.h"
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h
index 9fcc2af25c..100c1237ac 100644
--- a/include/exec/memory-internal.h
+++ b/include/exec/memory-internal.h
@@ -38,10 +38,6 @@ void flatview_unref(FlatView *view);
extern const MemoryRegionOps unassigned_mem_ops;
-bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
- unsigned size, bool is_write,
- MemTxAttrs attrs);
-
void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection *section);
AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
void address_space_dispatch_compact(AddressSpaceDispatch *d);
diff --git a/include/exec/memory.h b/include/exec/memory.h
index 91f8a2395a..c37ffdbcd1 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -2442,6 +2442,10 @@ void memory_global_dirty_log_stop(unsigned int flags);
void mtree_info(bool flatview, bool dispatch_tree, bool owner, bool disabled);
+bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
+ unsigned size, bool is_write,
+ MemTxAttrs attrs);
+
/**
* memory_region_dispatch_read: perform a read directly to the specified
* MemoryRegion.
--
2.38.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid()
2022-12-17 15:24 ` [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid() Philippe Mathieu-Daudé
@ 2022-12-21 21:00 ` Eric Farman
2022-12-29 9:17 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Eric Farman @ 2022-12-21 21:00 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, David Hildenbrand,
Christian Borntraeger, Thomas Huth, Ilya Leoshkevich
On Sat, 2022-12-17 at 16:24 +0100, Philippe Mathieu-Daudé wrote:
> Instead of having hardware device poking into memory
> internal API, expose memory_region_access_valid().
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
That's the only memory_region_ function s390 calls that isn't already
in memory.h, so makes sense to me.
Reviewed-by: Eric Farman <farman@linux.ibm.com>
> ---
> hw/s390x/s390-pci-inst.c | 2 +-
> include/exec/memory-internal.h | 4 ----
> include/exec/memory.h | 4 ++++
> 3 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c
> index 66e764f901..35db7777e4 100644
> --- a/hw/s390x/s390-pci-inst.c
> +++ b/hw/s390x/s390-pci-inst.c
> @@ -13,7 +13,7 @@
>
> #include "qemu/osdep.h"
> #include "exec/memop.h"
> -#include "exec/memory-internal.h"
> +#include "exec/memory.h"
> #include "qemu/error-report.h"
> #include "sysemu/hw_accel.h"
> #include "hw/s390x/s390-pci-inst.h"
> diff --git a/include/exec/memory-internal.h b/include/exec/memory-
> internal.h
> index 9fcc2af25c..100c1237ac 100644
> --- a/include/exec/memory-internal.h
> +++ b/include/exec/memory-internal.h
> @@ -38,10 +38,6 @@ void flatview_unref(FlatView *view);
>
> extern const MemoryRegionOps unassigned_mem_ops;
>
> -bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
> - unsigned size, bool is_write,
> - MemTxAttrs attrs);
> -
> void flatview_add_to_dispatch(FlatView *fv, MemoryRegionSection
> *section);
> AddressSpaceDispatch *address_space_dispatch_new(FlatView *fv);
> void address_space_dispatch_compact(AddressSpaceDispatch *d);
> diff --git a/include/exec/memory.h b/include/exec/memory.h
> index 91f8a2395a..c37ffdbcd1 100644
> --- a/include/exec/memory.h
> +++ b/include/exec/memory.h
> @@ -2442,6 +2442,10 @@ void memory_global_dirty_log_stop(unsigned int
> flags);
>
> void mtree_info(bool flatview, bool dispatch_tree, bool owner, bool
> disabled);
>
> +bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
> + unsigned size, bool is_write,
> + MemTxAttrs attrs);
> +
> /**
> * memory_region_dispatch_read: perform a read directly to the
> specified
> * MemoryRegion.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid()
2022-12-17 15:24 ` [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid() Philippe Mathieu-Daudé
2022-12-21 21:00 ` Eric Farman
@ 2022-12-29 9:17 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Thomas Huth @ 2022-12-29 9:17 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, David Hildenbrand,
Christian Borntraeger, Eric Farman, Ilya Leoshkevich
On 17/12/2022 16.24, Philippe Mathieu-Daudé wrote:
> Instead of having hardware device poking into memory
> internal API, expose memory_region_access_valid().
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> hw/s390x/s390-pci-inst.c | 2 +-
> include/exec/memory-internal.h | 4 ----
> include/exec/memory.h | 4 ++++
> 3 files changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init()
2022-12-17 15:24 [PATCH v2 0/5] target/s390x: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
2022-12-17 15:24 ` [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid() Philippe Mathieu-Daudé
@ 2022-12-17 15:24 ` Philippe Mathieu-Daudé
2022-12-17 17:37 ` Richard Henderson
2022-12-29 9:23 ` Thomas Huth
2022-12-17 15:24 ` [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu Philippe Mathieu-Daudé
` (2 subsequent siblings)
4 siblings, 2 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-17 15:24 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, Philippe Mathieu-Daudé,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
There is no point in having s390_pv_init() inlined. Directly
call s390_pv_kvm_init() guarded by kvm_enabled() so the compiler
can elide when CONFIG_KVM is not set.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/s390x/pv.c | 4 +++-
hw/s390x/s390-virtio-ccw.c | 6 ++++--
include/hw/s390x/pv.h | 13 -------------
3 files changed, 7 insertions(+), 16 deletions(-)
diff --git a/hw/s390x/pv.c b/hw/s390x/pv.c
index 8dfe92d8df..17c658402d 100644
--- a/hw/s390x/pv.c
+++ b/hw/s390x/pv.c
@@ -251,7 +251,9 @@ struct S390PVGuestClass {
int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp)
{
- if (!object_dynamic_cast(OBJECT(cgs), TYPE_S390_PV_GUEST)) {
+ assert(kvm_enabled());
+
+ if (!cgs || !object_dynamic_cast(OBJECT(cgs), TYPE_S390_PV_GUEST)) {
return 0;
}
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 2e64ffab45..d9a96e315e 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -255,8 +255,10 @@ static void ccw_init(MachineState *machine)
/* init CPUs (incl. CPU model) early so s390_has_feature() works */
s390_init_cpus(machine);
- /* Need CPU model to be determined before we can set up PV */
- s390_pv_init(machine->cgs, &error_fatal);
+ if (kvm_enabled()) {
+ /* Need CPU model to be determined before we can set up PV */
+ s390_pv_kvm_init(machine->cgs, &error_fatal);
+ }
s390_flic_init();
diff --git a/include/hw/s390x/pv.h b/include/hw/s390x/pv.h
index 9360aa1091..fad61cc6c6 100644
--- a/include/hw/s390x/pv.h
+++ b/include/hw/s390x/pv.h
@@ -12,7 +12,6 @@
#ifndef HW_S390_PV_H
#define HW_S390_PV_H
-#include "qapi/error.h"
#include "sysemu/kvm.h"
#ifdef CONFIG_KVM
@@ -78,17 +77,5 @@ static inline int kvm_s390_dump_completion_data(void *buff) { return 0; }
#endif /* CONFIG_KVM */
int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp);
-static inline int s390_pv_init(ConfidentialGuestSupport *cgs, Error **errp)
-{
- if (!cgs) {
- return 0;
- }
- if (kvm_enabled()) {
- return s390_pv_kvm_init(cgs, errp);
- }
-
- error_setg(errp, "Protected Virtualization requires KVM");
- return -1;
-}
#endif /* HW_S390_PV_H */
--
2.38.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init()
2022-12-17 15:24 ` [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init() Philippe Mathieu-Daudé
@ 2022-12-17 17:37 ` Richard Henderson
2022-12-29 9:23 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Richard Henderson @ 2022-12-17 17:37 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Paolo Bonzini, Peter Xu, Matthew Rosato, Halil Pasic,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
On 12/17/22 07:24, Philippe Mathieu-Daudé wrote:
> @@ -251,7 +251,9 @@ struct S390PVGuestClass {
>
> int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp)
> {
> - if (!object_dynamic_cast(OBJECT(cgs), TYPE_S390_PV_GUEST)) {
> + assert(kvm_enabled());
> +
> + if (!cgs || !object_dynamic_cast(OBJECT(cgs), TYPE_S390_PV_GUEST)) {
> return 0;
> }
>
> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
> index 2e64ffab45..d9a96e315e 100644
> --- a/hw/s390x/s390-virtio-ccw.c
> +++ b/hw/s390x/s390-virtio-ccw.c
> @@ -255,8 +255,10 @@ static void ccw_init(MachineState *machine)
> /* init CPUs (incl. CPU model) early so s390_has_feature() works */
> s390_init_cpus(machine);
>
> - /* Need CPU model to be determined before we can set up PV */
> - s390_pv_init(machine->cgs, &error_fatal);
> + if (kvm_enabled()) {
> + /* Need CPU model to be determined before we can set up PV */
> + s390_pv_kvm_init(machine->cgs, &error_fatal);
> + }
>
> s390_flic_init();...
> -static inline int s390_pv_init(ConfidentialGuestSupport *cgs, Error **errp)
> -{
> - if (!cgs) {
> - return 0;
> - }
> - if (kvm_enabled()) {
> - return s390_pv_kvm_init(cgs, errp);
> - }
> -
> - error_setg(errp, "Protected Virtualization requires KVM");
> - return -1;
> -}
You've lost the error path above. And it seems like we could just handle null cgs early.
E.g.
if (machine->cgs) {
if (kvm_enabled()) {
s390_pv_kvm_init(machine->cgs, &error_fatal);
} else {
error_report(...);
exit(EXIT_FAILURE);
}
}
(since qabi/error.h says not to use error_setg(&error_fatal, ...)).
r~
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init()
2022-12-17 15:24 ` [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init() Philippe Mathieu-Daudé
2022-12-17 17:37 ` Richard Henderson
@ 2022-12-29 9:23 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Thomas Huth @ 2022-12-29 9:23 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, David Hildenbrand,
Christian Borntraeger, Eric Farman, Ilya Leoshkevich
On 17/12/2022 16.24, Philippe Mathieu-Daudé wrote:
> There is no point in having s390_pv_init() inlined. Directly
> call s390_pv_kvm_init() guarded by kvm_enabled() so the compiler
> can elide when CONFIG_KVM is not set.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> hw/s390x/pv.c | 4 +++-
> hw/s390x/s390-virtio-ccw.c | 6 ++++--
> include/hw/s390x/pv.h | 13 -------------
> 3 files changed, 7 insertions(+), 16 deletions(-)
>
> diff --git a/hw/s390x/pv.c b/hw/s390x/pv.c
> index 8dfe92d8df..17c658402d 100644
> --- a/hw/s390x/pv.c
> +++ b/hw/s390x/pv.c
> @@ -251,7 +251,9 @@ struct S390PVGuestClass {
>
> int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp)
> {
> - if (!object_dynamic_cast(OBJECT(cgs), TYPE_S390_PV_GUEST)) {
> + assert(kvm_enabled());
> +
> + if (!cgs || !object_dynamic_cast(OBJECT(cgs), TYPE_S390_PV_GUEST)) {
> return 0;
> }
>
> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
> index 2e64ffab45..d9a96e315e 100644
> --- a/hw/s390x/s390-virtio-ccw.c
> +++ b/hw/s390x/s390-virtio-ccw.c
> @@ -255,8 +255,10 @@ static void ccw_init(MachineState *machine)
> /* init CPUs (incl. CPU model) early so s390_has_feature() works */
> s390_init_cpus(machine);
>
> - /* Need CPU model to be determined before we can set up PV */
> - s390_pv_init(machine->cgs, &error_fatal);
> + if (kvm_enabled()) {
> + /* Need CPU model to be determined before we can set up PV */
> + s390_pv_kvm_init(machine->cgs, &error_fatal);
> + }
This now slightly changed the order of the checks ... if cgs is set, but kvm
is disabled, there is now no error message anymore and the code continues
silently. That sounds wrong?
Thomas
> s390_flic_init();
>
> diff --git a/include/hw/s390x/pv.h b/include/hw/s390x/pv.h
> index 9360aa1091..fad61cc6c6 100644
> --- a/include/hw/s390x/pv.h
> +++ b/include/hw/s390x/pv.h
> @@ -12,7 +12,6 @@
> #ifndef HW_S390_PV_H
> #define HW_S390_PV_H
>
> -#include "qapi/error.h"
> #include "sysemu/kvm.h"
>
> #ifdef CONFIG_KVM
> @@ -78,17 +77,5 @@ static inline int kvm_s390_dump_completion_data(void *buff) { return 0; }
> #endif /* CONFIG_KVM */
>
> int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp);
> -static inline int s390_pv_init(ConfidentialGuestSupport *cgs, Error **errp)
> -{
> - if (!cgs) {
> - return 0;
> - }
> - if (kvm_enabled()) {
> - return s390_pv_kvm_init(cgs, errp);
> - }
> -
> - error_setg(errp, "Protected Virtualization requires KVM");
> - return -1;
> -}
>
> #endif /* HW_S390_PV_H */
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu
2022-12-17 15:24 [PATCH v2 0/5] target/s390x: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
2022-12-17 15:24 ` [PATCH v2 1/5] exec/memory: Expose memory_region_access_valid() Philippe Mathieu-Daudé
2022-12-17 15:24 ` [PATCH v2 2/5] hw/s390x/pv: Un-inline s390_pv_init() Philippe Mathieu-Daudé
@ 2022-12-17 15:24 ` Philippe Mathieu-Daudé
2022-12-17 17:38 ` Richard Henderson
2022-12-29 9:25 ` Thomas Huth
2022-12-17 15:24 ` [PATCH v2 4/5] target/s390x/tcg/misc_helper: Remove unused "memory.h" include Philippe Mathieu-Daudé
2022-12-17 15:24 ` [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu Philippe Mathieu-Daudé
4 siblings, 2 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-17 15:24 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, Philippe Mathieu-Daudé,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
Protected Virtualization is irrelevant in user emulation.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/s390x/cpu_features.c | 4 ++++
target/s390x/cpu_models.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c
index 5528acd082..2e4e11d264 100644
--- a/target/s390x/cpu_features.c
+++ b/target/s390x/cpu_features.c
@@ -14,7 +14,9 @@
#include "qemu/osdep.h"
#include "qemu/module.h"
#include "cpu_features.h"
+#ifndef CONFIG_USER_ONLY
#include "hw/s390x/pv.h"
+#endif
#define DEF_FEAT(_FEAT, _NAME, _TYPE, _BIT, _DESC) \
[S390_FEAT_##_FEAT] = { \
@@ -107,6 +109,7 @@ void s390_fill_feat_block(const S390FeatBitmap features, S390FeatType type,
feat = find_next_bit(features, S390_FEAT_MAX, feat + 1);
}
+#ifndef CONFIG_USER_ONLY
if (!s390_is_pv()) {
return;
}
@@ -147,6 +150,7 @@ void s390_fill_feat_block(const S390FeatBitmap features, S390FeatType type,
default:
return;
}
+#endif
}
void s390_add_from_feat_block(S390FeatBitmap features, S390FeatType type,
diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c
index c3a4f80633..065ec6d66c 100644
--- a/target/s390x/cpu_models.c
+++ b/target/s390x/cpu_models.c
@@ -23,8 +23,8 @@
#include "qemu/qemu-print.h"
#ifndef CONFIG_USER_ONLY
#include "sysemu/sysemu.h"
-#endif
#include "hw/s390x/pv.h"
+#endif
#define CPUDEF_INIT(_type, _gen, _ec_ga, _mha_pow, _hmfai, _name, _desc) \
{ \
@@ -236,6 +236,7 @@ bool s390_has_feat(S390Feat feat)
return 0;
}
+#ifndef CONFIG_USER_ONLY
if (s390_is_pv()) {
switch (feat) {
case S390_FEAT_DIAG_318:
@@ -259,6 +260,7 @@ bool s390_has_feat(S390Feat feat)
break;
}
}
+#endif
return test_bit(feat, cpu->model->features);
}
--
2.38.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu
2022-12-17 15:24 ` [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu Philippe Mathieu-Daudé
@ 2022-12-17 17:38 ` Richard Henderson
2022-12-29 9:25 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Richard Henderson @ 2022-12-17 17:38 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Paolo Bonzini, Peter Xu, Matthew Rosato, Halil Pasic,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
On 12/17/22 07:24, Philippe Mathieu-Daudé wrote:
> Protected Virtualization is irrelevant in user emulation.
>
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
> target/s390x/cpu_features.c | 4 ++++
> target/s390x/cpu_models.c | 4 +++-
> 2 files changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu
2022-12-17 15:24 ` [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu Philippe Mathieu-Daudé
2022-12-17 17:38 ` Richard Henderson
@ 2022-12-29 9:25 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Thomas Huth @ 2022-12-29 9:25 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, David Hildenbrand,
Christian Borntraeger, Eric Farman, Ilya Leoshkevich
On 17/12/2022 16.24, Philippe Mathieu-Daudé wrote:
> Protected Virtualization is irrelevant in user emulation.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> target/s390x/cpu_features.c | 4 ++++
> target/s390x/cpu_models.c | 4 +++-
> 2 files changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 4/5] target/s390x/tcg/misc_helper: Remove unused "memory.h" include
2022-12-17 15:24 [PATCH v2 0/5] target/s390x: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
` (2 preceding siblings ...)
2022-12-17 15:24 ` [PATCH v2 3/5] hw/s390x/pv: Restrict Protected Virtualization to sysemu Philippe Mathieu-Daudé
@ 2022-12-17 15:24 ` Philippe Mathieu-Daudé
2022-12-29 9:25 ` Thomas Huth
2022-12-17 15:24 ` [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu Philippe Mathieu-Daudé
4 siblings, 1 reply; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-17 15:24 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, Philippe Mathieu-Daudé,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/s390x/tcg/misc_helper.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/target/s390x/tcg/misc_helper.c b/target/s390x/tcg/misc_helper.c
index 71388a7119..576157b1f3 100644
--- a/target/s390x/tcg/misc_helper.c
+++ b/target/s390x/tcg/misc_helper.c
@@ -23,7 +23,6 @@
#include "qemu/main-loop.h"
#include "cpu.h"
#include "s390x-internal.h"
-#include "exec/memory.h"
#include "qemu/host-utils.h"
#include "exec/helper-proto.h"
#include "qemu/timer.h"
--
2.38.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2 4/5] target/s390x/tcg/misc_helper: Remove unused "memory.h" include
2022-12-17 15:24 ` [PATCH v2 4/5] target/s390x/tcg/misc_helper: Remove unused "memory.h" include Philippe Mathieu-Daudé
@ 2022-12-29 9:25 ` Thomas Huth
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Huth @ 2022-12-29 9:25 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, David Hildenbrand,
Christian Borntraeger, Eric Farman, Ilya Leoshkevich
On 17/12/2022 16.24, Philippe Mathieu-Daudé wrote:
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> target/s390x/tcg/misc_helper.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/target/s390x/tcg/misc_helper.c b/target/s390x/tcg/misc_helper.c
> index 71388a7119..576157b1f3 100644
> --- a/target/s390x/tcg/misc_helper.c
> +++ b/target/s390x/tcg/misc_helper.c
> @@ -23,7 +23,6 @@
> #include "qemu/main-loop.h"
> #include "cpu.h"
> #include "s390x-internal.h"
> -#include "exec/memory.h"
> #include "qemu/host-utils.h"
> #include "exec/helper-proto.h"
> #include "qemu/timer.h"
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu
2022-12-17 15:24 [PATCH v2 0/5] target/s390x: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
` (3 preceding siblings ...)
2022-12-17 15:24 ` [PATCH v2 4/5] target/s390x/tcg/misc_helper: Remove unused "memory.h" include Philippe Mathieu-Daudé
@ 2022-12-17 15:24 ` Philippe Mathieu-Daudé
2022-12-17 17:40 ` Richard Henderson
2022-12-29 9:25 ` Thomas Huth
4 siblings, 2 replies; 15+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-17 15:24 UTC (permalink / raw)
To: qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, Philippe Mathieu-Daudé,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/s390x/tcg/excp_helper.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/s390x/tcg/excp_helper.c b/target/s390x/tcg/excp_helper.c
index fe02d82201..bc767f0443 100644
--- a/target/s390x/tcg/excp_helper.c
+++ b/target/s390x/tcg/excp_helper.c
@@ -21,15 +21,15 @@
#include "qemu/osdep.h"
#include "qemu/log.h"
#include "cpu.h"
-#include "s390x-internal.h"
#include "exec/helper-proto.h"
-#include "qemu/timer.h"
#include "exec/exec-all.h"
#include "exec/cpu_ldst.h"
-#include "hw/s390x/ioinst.h"
-#include "exec/address-spaces.h"
+#include "s390x-internal.h"
#include "tcg_s390x.h"
#ifndef CONFIG_USER_ONLY
+#include "qemu/timer.h"
+#include "exec/address-spaces.h"
+#include "hw/s390x/ioinst.h"
#include "hw/s390x/s390_flic.h"
#include "hw/boards.h"
#endif
--
2.38.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu
2022-12-17 15:24 ` [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu Philippe Mathieu-Daudé
@ 2022-12-17 17:40 ` Richard Henderson
2022-12-29 9:25 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Richard Henderson @ 2022-12-17 17:40 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Paolo Bonzini, Peter Xu, Matthew Rosato, Halil Pasic,
David Hildenbrand, Christian Borntraeger, Thomas Huth,
Eric Farman, Ilya Leoshkevich
On 12/17/22 07:24, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> target/s390x/tcg/excp_helper.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
>
> diff --git a/target/s390x/tcg/excp_helper.c b/target/s390x/tcg/excp_helper.c
> index fe02d82201..bc767f0443 100644
> --- a/target/s390x/tcg/excp_helper.c
> +++ b/target/s390x/tcg/excp_helper.c
> @@ -21,15 +21,15 @@
> #include "qemu/osdep.h"
> #include "qemu/log.h"
> #include "cpu.h"
> -#include "s390x-internal.h"
> #include "exec/helper-proto.h"
> -#include "qemu/timer.h"
> #include "exec/exec-all.h"
> #include "exec/cpu_ldst.h"
> -#include "hw/s390x/ioinst.h"
> -#include "exec/address-spaces.h"
> +#include "s390x-internal.h"
> #include "tcg_s390x.h"
> #ifndef CONFIG_USER_ONLY
> +#include "qemu/timer.h"
> +#include "exec/address-spaces.h"
> +#include "hw/s390x/ioinst.h"
> #include "hw/s390x/s390_flic.h"
> #include "hw/boards.h"
> #endif
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu
2022-12-17 15:24 ` [PATCH v2 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu Philippe Mathieu-Daudé
2022-12-17 17:40 ` Richard Henderson
@ 2022-12-29 9:25 ` Thomas Huth
1 sibling, 0 replies; 15+ messages in thread
From: Thomas Huth @ 2022-12-29 9:25 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel
Cc: qemu-s390x, Richard Henderson, Paolo Bonzini, Peter Xu,
Matthew Rosato, Halil Pasic, David Hildenbrand,
Christian Borntraeger, Eric Farman, Ilya Leoshkevich
On 17/12/2022 16.24, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> target/s390x/tcg/excp_helper.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/target/s390x/tcg/excp_helper.c b/target/s390x/tcg/excp_helper.c
> index fe02d82201..bc767f0443 100644
> --- a/target/s390x/tcg/excp_helper.c
> +++ b/target/s390x/tcg/excp_helper.c
> @@ -21,15 +21,15 @@
> #include "qemu/osdep.h"
> #include "qemu/log.h"
> #include "cpu.h"
> -#include "s390x-internal.h"
> #include "exec/helper-proto.h"
> -#include "qemu/timer.h"
> #include "exec/exec-all.h"
> #include "exec/cpu_ldst.h"
> -#include "hw/s390x/ioinst.h"
> -#include "exec/address-spaces.h"
> +#include "s390x-internal.h"
> #include "tcg_s390x.h"
> #ifndef CONFIG_USER_ONLY
> +#include "qemu/timer.h"
> +#include "exec/address-spaces.h"
> +#include "hw/s390x/ioinst.h"
> #include "hw/s390x/s390_flic.h"
> #include "hw/boards.h"
> #endif
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 15+ messages in thread