kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] Please pull my kvm-ppc-uvmem-5.5 tag
@ 2019-11-26  5:24 Paul Mackerras
  2019-11-28  4:56 ` Paul Mackerras
  2019-11-28 23:25 ` [GIT PULL v2] Please pull my kvm-ppc-uvmem-5.5-2 tag Paul Mackerras
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Mackerras @ 2019-11-26  5:24 UTC (permalink / raw)
  To: Paolo Bonzini, kvm; +Cc: kvm-ppc, Bharata B Rao

Paolo,

If you are intending to send a second pull request for Linus for this
merge window, and you are OK with taking a new feature in PPC KVM code
at this stage, then please do a pull from my kvm-ppc-uvmem-5.5 tag.
This adds code to manage the movement of pages for a secure KVM guest
between normal memory managed by the host kernel and secure memory
managed by the ultravisor on Power systems with Protected Execution
Facility hardware and firmware.  Secure memory is not accessible to
the host kernel and is represented as device memory using the
ZONE_DEVICE facility.

The patch set has been around for a while and has been reasonably well
reviewed -- this branch contains v11 of the patch set.  The code
changes are confined to PPC KVM code with the exception of a one-line
change to mm/ksm.c to export the ksm_madvise function, the addition of
a new ioctl number in include/uapi/linux/kvm.h, and the addition of a
Kconfig option in arch/powerpc/Kconfig (which Michael Ellerman is OK
with).

If you prefer not to pull this for 5.5 then we'll submit it for 5.6.

Thanks,
Paul.

The following changes since commit 96710247298df52a4b8150a62a6fe87083093ff3:

  Merge tag 'kvm-ppc-next-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into HEAD (2019-11-25 11:29:05 +0100)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-uvmem-5.5

for you to fetch changes up to 177707824f27d258cf5e20f1a122570e3df011b4:

  powerpc: Ultravisor: Add PPC_UV config option (2019-11-26 14:33:27 +1100)

----------------------------------------------------------------
KVM: Add support for secure guests under the Protected Execution
Framework (PEF) Ultravisor on POWER.

This enables secure memory to be represented as device memory,
which provides a way for the host to keep track of which pages of a
secure guest have been moved into secure memory managed by the
ultravisor and are no longer accessible by the host, and manage
movement of pages between secure and normal memory.

----------------------------------------------------------------
Anshuman Khandual (1):
      powerpc: Ultravisor: Add PPC_UV config option

Bharata B Rao (6):
      mm: ksm: Export ksm_madvise()
      KVM: PPC: Book3S HV: Support for running secure guests
      KVM: PPC: Book3S HV: Shared pages support for secure guests
      KVM: PPC: Book3S HV: Radix changes for secure guest
      KVM: PPC: Book3S HV: Handle memory plug/unplug to secure VM
      KVM: PPC: Book3S HV: Support reset of secure guest

 Documentation/virt/kvm/api.txt              |  18 +
 arch/powerpc/Kconfig                        |  17 +
 arch/powerpc/include/asm/hvcall.h           |   9 +
 arch/powerpc/include/asm/kvm_book3s_uvmem.h |  74 +++
 arch/powerpc/include/asm/kvm_host.h         |   6 +
 arch/powerpc/include/asm/kvm_ppc.h          |   1 +
 arch/powerpc/include/asm/ultravisor-api.h   |   6 +
 arch/powerpc/include/asm/ultravisor.h       |  36 ++
 arch/powerpc/kvm/Makefile                   |   3 +
 arch/powerpc/kvm/book3s_64_mmu_radix.c      |  25 +
 arch/powerpc/kvm/book3s_hv.c                | 143 +++++
 arch/powerpc/kvm/book3s_hv_uvmem.c          | 774 ++++++++++++++++++++++++++++
 arch/powerpc/kvm/powerpc.c                  |  12 +
 include/uapi/linux/kvm.h                    |   1 +
 mm/ksm.c                                    |   1 +
 15 files changed, 1126 insertions(+)
 create mode 100644 arch/powerpc/include/asm/kvm_book3s_uvmem.h
 create mode 100644 arch/powerpc/kvm/book3s_hv_uvmem.c



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL] Please pull my kvm-ppc-uvmem-5.5 tag
  2019-11-26  5:24 [GIT PULL] Please pull my kvm-ppc-uvmem-5.5 tag Paul Mackerras
@ 2019-11-28  4:56 ` Paul Mackerras
  2019-11-28 23:25 ` [GIT PULL v2] Please pull my kvm-ppc-uvmem-5.5-2 tag Paul Mackerras
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Mackerras @ 2019-11-28  4:56 UTC (permalink / raw)
  To: Paolo Bonzini, kvm; +Cc: kvm-ppc, Bharata B Rao

On Tue, Nov 26, 2019 at 04:24:55PM +1100, Paul Mackerras wrote:
> Paolo,
> 
> If you are intending to send a second pull request for Linus for this
> merge window, and you are OK with taking a new feature in PPC KVM code
> at this stage, then please do a pull from my kvm-ppc-uvmem-5.5 tag.
> This adds code to manage the movement of pages for a secure KVM guest
> between normal memory managed by the host kernel and secure memory
> managed by the ultravisor on Power systems with Protected Execution
> Facility hardware and firmware.  Secure memory is not accessible to
> the host kernel and is represented as device memory using the
> ZONE_DEVICE facility.
> 
> The patch set has been around for a while and has been reasonably well
> reviewed -- this branch contains v11 of the patch set.  The code
> changes are confined to PPC KVM code with the exception of a one-line
> change to mm/ksm.c to export the ksm_madvise function, the addition of
> a new ioctl number in include/uapi/linux/kvm.h, and the addition of a
> Kconfig option in arch/powerpc/Kconfig (which Michael Ellerman is OK
> with).

Please hold off on this.  Hugh Dickins sent some review comments
identifying a problem (ksm_madvise needs mmap_sem held for writing,
not just reading).  I'll send an updated pull request shortly.

Paul.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [GIT PULL v2] Please pull my kvm-ppc-uvmem-5.5-2 tag
  2019-11-26  5:24 [GIT PULL] Please pull my kvm-ppc-uvmem-5.5 tag Paul Mackerras
  2019-11-28  4:56 ` Paul Mackerras
@ 2019-11-28 23:25 ` Paul Mackerras
  2019-11-29 18:20   ` Paolo Bonzini
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Mackerras @ 2019-11-28 23:25 UTC (permalink / raw)
  To: Paolo Bonzini, kvm; +Cc: kvm-ppc, Bharata B Rao

Paolo,

Bharata has corrected the issue identified by Hugh Dickins, so please
do a pull from my kvm-ppc-uvmem-5.5-2 tag.

This adds code to manage the movement of pages for a secure KVM guest
between normal memory managed by the host kernel and secure memory
managed by the ultravisor, on Power systems with Protected Execution
Facility hardware and firmware.  Secure memory is not accessible to
the host kernel and is represented as device memory using the
ZONE_DEVICE facility.

Thanks,
Paul.

The following changes since commit 96710247298df52a4b8150a62a6fe87083093ff3:

  Merge tag 'kvm-ppc-next-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into HEAD (2019-11-25 11:29:05 +0100)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-uvmem-5.5-2

for you to fetch changes up to 013a53f2d25a9fa9b9e1f70f5baa3f56e3454052:

  powerpc: Ultravisor: Add PPC_UV config option (2019-11-28 17:02:40 +1100)

----------------------------------------------------------------
KVM: Add support for secure guests under the Protected Execution
Framework (PEF) Ultravisor on POWER.

This enables secure memory to be represented as device memory,
which provides a way for the host to keep track of which pages of a
secure guest have been moved into secure memory managed by the
ultravisor and are no longer accessible by the host, and manage
movement of pages between secure and normal memory.

----------------------------------------------------------------
Anshuman Khandual (1):
      powerpc: Ultravisor: Add PPC_UV config option

Bharata B Rao (6):
      mm: ksm: Export ksm_madvise()
      KVM: PPC: Book3S HV: Support for running secure guests
      KVM: PPC: Book3S HV: Shared pages support for secure guests
      KVM: PPC: Book3S HV: Radix changes for secure guest
      KVM: PPC: Book3S HV: Handle memory plug/unplug to secure VM
      KVM: PPC: Book3S HV: Support reset of secure guest

 Documentation/virt/kvm/api.txt              |  18 +
 arch/powerpc/Kconfig                        |  17 +
 arch/powerpc/include/asm/hvcall.h           |   9 +
 arch/powerpc/include/asm/kvm_book3s_uvmem.h |  74 +++
 arch/powerpc/include/asm/kvm_host.h         |   6 +
 arch/powerpc/include/asm/kvm_ppc.h          |   1 +
 arch/powerpc/include/asm/ultravisor-api.h   |   6 +
 arch/powerpc/include/asm/ultravisor.h       |  36 ++
 arch/powerpc/kvm/Makefile                   |   3 +
 arch/powerpc/kvm/book3s_64_mmu_radix.c      |  25 +
 arch/powerpc/kvm/book3s_hv.c                | 143 +++++
 arch/powerpc/kvm/book3s_hv_uvmem.c          | 785 ++++++++++++++++++++++++++++
 arch/powerpc/kvm/powerpc.c                  |  12 +
 include/uapi/linux/kvm.h                    |   1 +
 mm/ksm.c                                    |   1 +
 15 files changed, 1137 insertions(+)
 create mode 100644 arch/powerpc/include/asm/kvm_book3s_uvmem.h
 create mode 100644 arch/powerpc/kvm/book3s_hv_uvmem.c

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [GIT PULL v2] Please pull my kvm-ppc-uvmem-5.5-2 tag
  2019-11-28 23:25 ` [GIT PULL v2] Please pull my kvm-ppc-uvmem-5.5-2 tag Paul Mackerras
@ 2019-11-29 18:20   ` Paolo Bonzini
  0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2019-11-29 18:20 UTC (permalink / raw)
  To: Paul Mackerras, kvm; +Cc: kvm-ppc, Bharata B Rao

On 29/11/19 00:25, Paul Mackerras wrote:
>   git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-uvmem-5.5-2

Pulled, thanks.

Paolo


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-29 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26  5:24 [GIT PULL] Please pull my kvm-ppc-uvmem-5.5 tag Paul Mackerras
2019-11-28  4:56 ` Paul Mackerras
2019-11-28 23:25 ` [GIT PULL v2] Please pull my kvm-ppc-uvmem-5.5-2 tag Paul Mackerras
2019-11-29 18:20   ` Paolo Bonzini

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).