mbox series

[GIT,PULL] KVM/arm64 fixes for 5.12, take #2

Message ID 20210312160003.3920996-1-maz@kernel.org
State New
Headers show
Series [GIT,PULL] KVM/arm64 fixes for 5.12, take #2 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.12-2

Message

Marc Zyngier March 12, 2021, 4 p.m. UTC
Hi Paolo,

Here's the second batch of KVM/arm64 fixes for 5.12. The most notable
item is the tidying up of the way we deal with the guest physical
space, which had a couple of warts. The other patches address i-cache
isolation between vcpus (they are supposed to be vcpu-private, but can
not being so...), and a fix for a link-time issue that can occur with
LTO.

Note that this time around, this pull request is on top of kvm/next,
right after the patches you applied last week.

Please pull,

	M.

The following changes since commit 357ad203d45c0f9d76a8feadbd5a1c5d460c638b:

  KVM: arm64: Fix range alignment when walking page tables (2021-03-06 04:18:41 -0500)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.12-2

for you to fetch changes up to 262b003d059c6671601a19057e9fe1a5e7f23722:

  KVM: arm64: Fix exclusive limit for IPA size (2021-03-12 15:43:22 +0000)

----------------------------------------------------------------
KVM/arm64 fixes for 5.12, take #2

- Fix a couple of branches that could be impossible to resolve at
  link time when objects are far apart, such as with LTO
- Mandate i-cache invalidation when two vcpus are sharing a physical CPU
- Fail VM creation if the implicit IPA size isn't supported
- Don't reject memslots that reach the IPA limit without breaching it

----------------------------------------------------------------
Marc Zyngier (3):
      KVM: arm64: Ensure I-cache isolation between vcpus of a same VM
      KVM: arm64: Reject VM creation when the default IPA size is unsupported
      KVM: arm64: Fix exclusive limit for IPA size

Sami Tolvanen (1):
      KVM: arm64: Don't use cbz/adr with external symbols

 Documentation/virt/kvm/api.rst     |  3 +++
 arch/arm64/include/asm/kvm_asm.h   |  4 ++--
 arch/arm64/kvm/arm.c               |  7 ++++++-
 arch/arm64/kvm/hyp/entry.S         |  6 ++++--
 arch/arm64/kvm/hyp/nvhe/hyp-main.c |  6 +++---
 arch/arm64/kvm/hyp/nvhe/tlb.c      |  3 ++-
 arch/arm64/kvm/hyp/vhe/tlb.c       |  3 ++-
 arch/arm64/kvm/mmu.c               |  3 +--
 arch/arm64/kvm/reset.c             | 12 ++++++++----
 9 files changed, 31 insertions(+), 16 deletions(-)

Comments

Paolo Bonzini March 12, 2021, 6:15 p.m. UTC | #1
On 12/03/21 17:00, Marc Zyngier wrote:
> Hi Paolo,
> 
> Here's the second batch of KVM/arm64 fixes for 5.12. The most notable
> item is the tidying up of the way we deal with the guest physical
> space, which had a couple of warts. The other patches address i-cache
> isolation between vcpus (they are supposed to be vcpu-private, but can
> not being so...), and a fix for a link-time issue that can occur with
> LTO.
> 
> Note that this time around, this pull request is on top of kvm/next,
> right after the patches you applied last week.
> 
> Please pull,
> 
> 	M.
> 
> The following changes since commit 357ad203d45c0f9d76a8feadbd5a1c5d460c638b:
> 
>    KVM: arm64: Fix range alignment when walking page tables (2021-03-06 04:18:41 -0500)
> 
> are available in the Git repository at:
> 
>    git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-5.12-2
> 
> for you to fetch changes up to 262b003d059c6671601a19057e9fe1a5e7f23722:
> 
>    KVM: arm64: Fix exclusive limit for IPA size (2021-03-12 15:43:22 +0000)
> 
> ----------------------------------------------------------------
> KVM/arm64 fixes for 5.12, take #2
> 
> - Fix a couple of branches that could be impossible to resolve at
>    link time when objects are far apart, such as with LTO
> - Mandate i-cache invalidation when two vcpus are sharing a physical CPU
> - Fail VM creation if the implicit IPA size isn't supported
> - Don't reject memslots that reach the IPA limit without breaching it
> 
> ----------------------------------------------------------------
> Marc Zyngier (3):
>        KVM: arm64: Ensure I-cache isolation between vcpus of a same VM
>        KVM: arm64: Reject VM creation when the default IPA size is unsupported
>        KVM: arm64: Fix exclusive limit for IPA size
> 
> Sami Tolvanen (1):
>        KVM: arm64: Don't use cbz/adr with external symbols
> 
>   Documentation/virt/kvm/api.rst     |  3 +++
>   arch/arm64/include/asm/kvm_asm.h   |  4 ++--
>   arch/arm64/kvm/arm.c               |  7 ++++++-
>   arch/arm64/kvm/hyp/entry.S         |  6 ++++--
>   arch/arm64/kvm/hyp/nvhe/hyp-main.c |  6 +++---
>   arch/arm64/kvm/hyp/nvhe/tlb.c      |  3 ++-
>   arch/arm64/kvm/hyp/vhe/tlb.c       |  3 ++-
>   arch/arm64/kvm/mmu.c               |  3 +--
>   arch/arm64/kvm/reset.c             | 12 ++++++++----
>   9 files changed, 31 insertions(+), 16 deletions(-)
> 

Pulled, thanks.

Paolo