Re: [Qemu-devel] [PULL v2 00/22] KVM patches for QEMU 2.12 soft freeze

2018-03-15 Thread Peter Maydell
On 13 March 2018 at 16:41, Paolo Bonzini  wrote:
> The following changes since commit fb5fff15881ba7a002924b967eb211c002897983:
>
>   Merge remote-tracking branch 
> 'remotes/kraxel/tags/vga-20180312-pull-request' into staging (2018-03-12 
> 18:35:37 +)
>
> are available in the git repository at:
>
>
>   git://github.com/bonzini/qemu.git tags/for-upstream-sev
>
> for you to fetch changes up to 9f750794985d7386f088da941c76b73880b2b6c4:
>
>   sev/i386: add sev_get_capabilities() (2018-03-13 12:04:04 +0100)
>
> 
> * Migrate MSR_SMI_COUNT (Liran)
> * Update kernel headers (Gerd, myself)
> * SEV support (Brijesh)
>
> I have not tested non-x86 compilation, but I reordered the SEV patches
> so that all non-x86-specific changes go first to catch any possible
> issues (which weren't there anyway :)).
>
> 

Applied, thanks. The issues were indeed not there :-)

-- PMM



[Qemu-devel] [PULL v2 00/22] KVM patches for QEMU 2.12 soft freeze

2018-03-13 Thread Paolo Bonzini
The following changes since commit fb5fff15881ba7a002924b967eb211c002897983:

  Merge remote-tracking branch 'remotes/kraxel/tags/vga-20180312-pull-request' 
into staging (2018-03-12 18:35:37 +)

are available in the git repository at:


  git://github.com/bonzini/qemu.git tags/for-upstream-sev

for you to fetch changes up to 9f750794985d7386f088da941c76b73880b2b6c4:

  sev/i386: add sev_get_capabilities() (2018-03-13 12:04:04 +0100)


* Migrate MSR_SMI_COUNT (Liran)
* Update kernel headers (Gerd, myself)
* SEV support (Brijesh)

I have not tested non-x86 compilation, but I reordered the SEV patches
so that all non-x86-specific changes go first to catch any possible
issues (which weren't there anyway :)).



v1->v2: squash fixes from Alex

Brijesh Singh (20):
  machine: add memory-encryption option
  docs: add AMD Secure Encrypted Virtualization (SEV)
  kvm: add memory encryption context
  kvm: introduce memory encryption APIs
  target/i386: add Secure Encrypted Virtualization (SEV) object
  sev/i386: qmp: add query-sev command
  include: add psp-sev.h header file
  sev/i386: add command to initialize the memory encryption context
  sev/i386: register the guest memory range which may contain encrypted data
  sev/i386: add command to create launch memory encryption context
  sev/i386: add command to encrypt guest memory region
  target/i386: encrypt bios rom
  sev/i386: add support to LAUNCH_MEASURE command
  sev/i386: finalize the SEV guest launch flow
  sev/i386: add migration blocker
  cpu/i386: populate CPUID 0x8000_001F when SEV is active
  sev/i386: hmp: add 'info sev' command
  sev/i386: qmp: add query-sev-launch-measure command
  sev/i386: qmp: add query-sev-capabilities command
  sev/i386: add sev_get_capabilities()

Liran Alon (1):
  KVM: x86: Add support for save/load MSR_SMI_COUNT

Paolo Bonzini (1):
  update Linux headers to 4.16-rc5

 accel/Makefile.objs|   2 +-
 accel/kvm/Makefile.objs|   3 +-
 accel/kvm/kvm-all.c|  39 +
 accel/kvm/sev-stub.c   |  26 +
 accel/stubs/kvm-stub.c |  10 +
 default-configs/i386-softmmu.mak   |   1 +
 default-configs/x86_64-softmmu.mak |   1 +
 docs/amd-memory-encryption.txt | 109 +++
 hmp-commands-info.hx   |  16 +
 hmp.h  |   1 +
 hw/core/machine.c  |  22 +
 hw/i386/pc_sysfw.c |  13 +
 include/hw/boards.h|   1 +
 include/standard-headers/linux/input-event-codes.h |   1 +
 include/standard-headers/linux/input.h |  11 +
 include/standard-headers/linux/pci_regs.h  |  30 +-
 include/standard-headers/linux/virtio_net.h|  13 +
 include/standard-headers/linux/virtio_ring.h   |   2 +-
 include/standard-headers/rdma/vmw_pvrdma-abi.h |  13 +-
 include/sysemu/kvm.h   |  17 +
 include/sysemu/sev.h   |  21 +
 linux-headers/asm-powerpc/kvm.h|   2 +
 linux-headers/asm-powerpc/unistd.h |   3 +
 linux-headers/asm-s390/unistd.h| 401 +-
 linux-headers/asm-s390/unistd_32.h | 364 +
 linux-headers/asm-s390/unistd_64.h | 331 +
 linux-headers/asm-x86/kvm_para.h   |   5 +
 linux-headers/linux/kvm.h  |  92 +++
 linux-headers/linux/psci.h |   3 +
 linux-headers/linux/psp-sev.h  | 142 
 linux-headers/linux/vfio.h |  72 ++
 monitor.c  |  21 +
 qapi/misc.json | 148 
 qemu-options.hx|  49 +-
 scripts/update-linux-headers.sh|   5 +-
 target/i386/Makefile.objs  |   2 +
 target/i386/cpu.c  |  14 +
 target/i386/cpu.h  |   3 +
 target/i386/kvm.c  |  13 +
 target/i386/machine.c  |  20 +
 target/i386/monitor.c  |  66 ++
 target/i386/sev-stub.c |  51 ++
 target/i386/sev.c  | 811 +
 target/i386/sev_i386.h |  88 +++
 target/i386/trace-events   |  10 +
 tests/qmp-test.c   |   5 +
 46 files changed, 2653 insertions(+), 420 deletions(-)
 create mode 1006