All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Upton <oupton@google.com>
To: kvm list <kvm@vger.kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	Sean Christopherson <sean.j.christopherson@intel.com>
Subject: Re: [PATCH v3 0/4] Restrict PV features to only enabled guests
Date: Thu, 13 Aug 2020 11:41:24 -0500	[thread overview]
Message-ID: <CAOQ_Qshck2zudJsKBUFQnRrzW0uO+vrSuR+aXO__CGcP2nUXQA@mail.gmail.com> (raw)
In-Reply-To: <20200806151433.2747952-1-oupton@google.com>

On Thu, Aug 6, 2020 at 10:14 AM Oliver Upton <oupton@google.com> wrote:
>
> To date, KVM has allowed guests to use paravirtual interfaces regardless
> of the configured CPUID. While almost any guest will consult the
> KVM_CPUID_FEATURES leaf _before_ using PV features, it is still
> undesirable to have such interfaces silently present.
>
> This series aims to address the issue by adding explicit checks against
> the guest's CPUID when servicing any paravirtual feature. Since this
> effectively changes the guest/hypervisor ABI, a KVM_CAP is warranted to
> guard the new behavior.
>
> Patches 1-2 refactor some of the PV code in anticipation of the change.
> Patch 3 introduces the checks + KVM_CAP. Finally, patch 4 fixes some doc
> typos that were noticed when working on this series.
>
> v1 => v2:
>  - Strip Change-Id footers (checkpatch is your friend!)
>
> v2 => v3:
>  - Mark kvm_write_system_time() as static
>
> Parent commit: f3633c268354 ("Merge tag 'kvm-s390-next-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into kvm-next-5.6")
>
> Oliver Upton (4):
>   kvm: x86: encapsulate wrmsr(MSR_KVM_SYSTEM_TIME) emulation in helper
>     fn
>   kvm: x86: set wall_clock in kvm_write_wall_clock()
>   kvm: x86: only provide PV features if enabled in guest's CPUID
>   Documentation: kvm: fix some typos in cpuid.rst
>
>  Documentation/virt/kvm/api.rst   |  11 +++
>  Documentation/virt/kvm/cpuid.rst |  88 +++++++++++-----------
>  arch/x86/include/asm/kvm_host.h  |   6 ++
>  arch/x86/kvm/cpuid.h             |  16 ++++
>  arch/x86/kvm/x86.c               | 122 +++++++++++++++++++++++--------
>  include/uapi/linux/kvm.h         |   1 +
>  6 files changed, 171 insertions(+), 73 deletions(-)
>
> --
> 2.28.0.236.gb10cc79966-goog
>

Ping :)

      parent reply	other threads:[~2020-08-13 16:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 15:14 [PATCH v3 0/4] Restrict PV features to only enabled guests Oliver Upton
2020-08-06 15:14 ` [PATCH v3 1/4] kvm: x86: encapsulate wrmsr(MSR_KVM_SYSTEM_TIME) emulation in helper fn Oliver Upton
2020-08-14  0:18   ` Wanpeng Li
2020-08-06 15:14 ` [PATCH v3 2/4] kvm: x86: set wall_clock in kvm_write_wall_clock() Oliver Upton
2020-08-06 15:14 ` [PATCH v3 3/4] kvm: x86: only provide PV features if enabled in guest's CPUID Oliver Upton
2020-08-14  0:58   ` Wanpeng Li
2020-08-14 15:43     ` Oliver Upton
2020-08-06 15:14 ` [PATCH v3 4/4] Documentation: kvm: fix some typos in cpuid.rst Oliver Upton
2020-08-13 16:41 ` Oliver Upton [this message]

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=CAOQ_Qshck2zudJsKBUFQnRrzW0uO+vrSuR+aXO__CGcP2nUXQA@mail.gmail.com \
    --to=oupton@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=sean.j.christopherson@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.