From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "David Hildenbrand" <david@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Halil Pasic" <pasic@linux.ibm.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Christian Borntraeger" <borntraeger@linux.ibm.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Eric Farman" <farman@linux.ibm.com>,
"Ilya Leoshkevich" <iii@linux.ibm.com>,
qemu-s390x@nongnu.org,
"Richard Henderson" <richard.henderson@linaro.org>,
"Peter Xu" <peterx@redhat.com>,
"Matthew Rosato" <mjrosato@linux.ibm.com>
Subject: [PATCH 3/5] hw/s390x/pv: Simplify s390_is_pv() for user emulation
Date: Fri, 16 Dec 2022 23:04:09 +0100 [thread overview]
Message-ID: <20221216220411.6779-4-philmd@linaro.org> (raw)
In-Reply-To: <20221216220411.6779-1-philmd@linaro.org>
Protected Virtualization is irrelevant in user emulation.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/hw/s390x/pv.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/hw/s390x/pv.h b/include/hw/s390x/pv.h
index 5bca5bcaf1..a4814ce303 100644
--- a/include/hw/s390x/pv.h
+++ b/include/hw/s390x/pv.h
@@ -12,6 +12,12 @@
#ifndef HW_S390_PV_H
#define HW_S390_PV_H
+#ifdef CONFIG_USER_ONLY
+
+static inline bool s390_is_pv(void) { return false; }
+
+#else /* !CONFIG_USER_ONLY */
+
#include "sysemu/kvm.h"
#ifdef CONFIG_KVM
@@ -79,4 +85,6 @@ static inline int kvm_s390_dump_completion_data(void *buff) { return 0; }
int s390_pv_kvm_init(ConfidentialGuestSupport *cgs, Error **errp);
int s390_pv_init(ConfidentialGuestSupport *cgs, Error **errp);
+#endif /* CONFIG_USER_ONLY */
+
#endif /* HW_S390_PV_H */
--
2.38.1
next prev parent reply other threads:[~2022-12-16 22:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 22:04 [PATCH 0/5] target/s390x: Header cleanups around "cpu.h" Philippe Mathieu-Daudé
2022-12-16 22:04 ` [PATCH 1/5] exec/memory: Expose memory_region_access_valid() Philippe Mathieu-Daudé
2022-12-17 0:42 ` Richard Henderson
2022-12-16 22:04 ` [PATCH 2/5] hw/s390x/pv: Un-inline s390_pv_init() Philippe Mathieu-Daudé
2022-12-16 23:27 ` Philippe Mathieu-Daudé
2022-12-16 22:04 ` Philippe Mathieu-Daudé [this message]
2022-12-17 11:42 ` [PATCH 3/5] hw/s390x/pv: Simplify s390_is_pv() for user emulation Philippe Mathieu-Daudé
2022-12-16 22:04 ` [PATCH 4/5] target/s390x/tcg/misc_helper: Remove unused "memory.h" include Philippe Mathieu-Daudé
2022-12-17 0:43 ` Richard Henderson
2022-12-16 22:04 ` [PATCH 5/5] target/s390x/tcg/excp_helper: Restrict system headers to sysemu Philippe Mathieu-Daudé
2022-12-17 0:45 ` Richard Henderson
2022-12-17 11:51 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221216220411.6779-4-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=borntraeger@linux.ibm.com \
--cc=david@redhat.com \
--cc=farman@linux.ibm.com \
--cc=iii@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).