From: Janosch Frank <frankja@linux.ibm.com>
To: Steffen Eiden <seiden@linux.ibm.com>,
linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org,
kvm@vger.kernel.org
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>,
David Hildenbrand <david@redhat.com>,
Michael Mueller <mimu@linux.vnet.ibm.com>,
Marc Hartmayer <mhartmay@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v3 2/3] KVM: s390: Add UV feature negotiation
Date: Tue, 15 Aug 2023 15:39:35 +0200 [thread overview]
Message-ID: <464a84ad-bc8b-30be-3f20-8091a236113c@linux.ibm.com> (raw)
In-Reply-To: <20230810113255.2163043-3-seiden@linux.ibm.com>
On 8/10/23 13:32, Steffen Eiden wrote:
> Add a uv_feature list for pv-guests to the KVM cpu-model.
> The feature bits 'AP-interpretation for secure guests' and
> 'AP-interrupt for secure guests' are available.
>
> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
[...]
>
> +#define KVM_S390_VM_CPU_UV_FEAT_GUEST_DEFAULT 0
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
I don't think that's needed, just set it to 0 (and even that's not
really needed since it's kzalloced but I'm fine with making this explicit).
> int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
> {
> gfp_t alloc_flags = GFP_KERNEL_ACCOUNT;
> @@ -3296,6 +3368,8 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
> kvm->arch.model.cpuid = kvm_s390_get_initial_cpuid();
> kvm->arch.model.ibc = sclp.ibc & 0x0fff;
>
> + kvm->arch.model.uv_feat_guest.feat = KVM_S390_VM_CPU_UV_FEAT_GUEST_DEFAULT;
> +
> kvm_s390_crypto_init(kvm);
>
> if (IS_ENABLED(CONFIG_VFIO_PCI_ZDEV_KVM)) {
next prev parent reply other threads:[~2023-08-15 13:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 11:32 [PATCH v3 0/3] KVM: s390: Enable AP instructions for PV-guests Steffen Eiden
2023-08-10 11:32 ` [PATCH v3 1/3] s390: uv: UV feature check utility Steffen Eiden
2023-08-15 11:58 ` Janosch Frank
2023-08-10 11:32 ` [PATCH v3 2/3] KVM: s390: Add UV feature negotiation Steffen Eiden
2023-08-15 13:39 ` Janosch Frank [this message]
2023-08-10 11:32 ` [PATCH v3 3/3] KVM: s390: pv: Allow AP-instructions for pv-guests Steffen Eiden
2023-08-15 12:09 ` Janosch Frank
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=464a84ad-bc8b-30be-3f20-8091a236113c@linux.ibm.com \
--to=frankja@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=david@redhat.com \
--cc=imbrenda@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mhartmay@linux.ibm.com \
--cc=mimu@linux.vnet.ibm.com \
--cc=seiden@linux.ibm.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