qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrea Bolognani <abologna@redhat.com>
To: Haibo Xu <haibo.xu@linaro.org>,
	qemu-devel@nongnu.org, qemu-arm@nongnu.org
Cc: peter.maydell@linaro.org, drjones@redhat.com, philmd@redhat.com,
	richard.henderson@linaro.org, pbonzini@redhat.com
Subject: Re: [PATCH 0/3] target/arm: Add nested virtualization support
Date: Mon, 22 Mar 2021 16:42:23 +0100	[thread overview]
Message-ID: <4b35e1dc2c6a2af117542eca6571ddf1e261fe10.camel@redhat.com> (raw)
In-Reply-To: <cover.1616052889.git.haibo.xu@linaro.org>

On Mon, 2021-03-22 at 10:07 +0000, Haibo Xu wrote:
> This series add support for ARMv8.3/8.4 nested virtualization support
> in KVM mode. It's based on Marc Zyngier's kernel KVM patches[1], and
> has been tested on a FVP model to run a L2 guest with Qemu. Now the
> feature can be enabled by "-M virt,accel=kvm,virtualization=on" when
> starting a VM.

Why the need to enable this explicitly? AFAIK, that's not necessary
for any other architecture: on x86, you just need to make sure you're
using '-cpu host' and pass a parameter to the kernel module.

Even assuming this can't be enabled transparently, wouldn't its
availability it be controlled by a CPU feature flag, similar to what
already happens for SVE and PMU, rather than a machine type option?

That would also address the discoverability issue: unless I'm
mistaken (which I very well might be :), with the current
implementation there's no way to tell whether nested KVM will be
usable short of trying and seeing whether QEMU errors out.

-- 
Andrea Bolognani / Red Hat / Virtualization



  parent reply	other threads:[~2021-03-22 15:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22 10:07 [PATCH 0/3] target/arm: Add nested virtualization support Haibo Xu
2021-03-22 10:07 ` [PATCH 1/3] Update linux header with new arm64 NV macro Haibo Xu
2021-03-22 10:07 ` [PATCH 2/3] Enable support for setting KVM vGIC maintenance IRQ Haibo Xu
2021-03-22 10:07 ` [PATCH 3/3] Enable nested virtualization support in arm64 KVM mode Haibo Xu
2021-03-22 10:48   ` Andrew Jones
2021-03-23  7:08     ` Haibo Xu
2021-03-22 15:42 ` Andrea Bolognani [this message]
2021-03-22 16:32   ` [PATCH 0/3] target/arm: Add nested virtualization support Andrew Jones
2021-03-23  7:00     ` Haibo Xu

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=4b35e1dc2c6a2af117542eca6571ddf1e261fe10.camel@redhat.com \
    --to=abologna@redhat.com \
    --cc=drjones@redhat.com \
    --cc=haibo.xu@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /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).