qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 00/46] mostly i386 patches for 2024-06-04
@ 2024-06-05  9:02 Paolo Bonzini
  2024-06-05  9:02 ` [PULL 01/46] docs, tests: do not specify scsi=off Paolo Bonzini
  2024-06-05 16:57 ` [PULL 00/46] mostly i386 patches for 2024-06-04 Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2024-06-05  9:02 UTC (permalink / raw)
  To: qemu-devel

The following changes since commit 3ab42e46acf867c45bc929fcc37693e327a35a24:

  Merge tag 'pull-ufs-20240603' of https://gitlab.com/jeuk20.kim/qemu into staging (2024-06-03 08:18:14 -0500)

are available in the Git repository at:

  https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to fc7a69e177e4ba26d11fcf47b853f85115b35a11:

  hw/i386: Add support for loading BIOS using guest_memfd (2024-06-04 16:44:23 +0200)

----------------------------------------------------------------
* virtio-blk: remove SCSI passthrough functionality
* require x86-64-v2 baseline ISA
* SEV-SNP host support
* fix xsave.flat with TCG
* fixes for CPUID checks done by TCG

----------------------------------------------------------------
Brijesh Singh (6):
      i386/sev: Introduce 'sev-snp-guest' object
      i386/sev: Add the SNP launch start context
      i386/sev: Add handling to encrypt/finalize guest launch data
      hw/i386/sev: Add function to get SEV metadata from OVMF header
      i386/sev: Add support for populating OVMF metadata pages
      hw/i386/sev: Add support to encrypt BIOS when SEV-SNP is enabled

Dov Murik (3):
      i386/sev: Extract build_kernel_loader_hashes
      i386/sev: Reorder struct declarations
      i386/sev: Allow measured direct kernel boot on SNP

Michael Roth (11):
      i386/sev: Introduce "sev-common" type to encapsulate common SEV state
      i386/sev: Add a sev_snp_enabled() helper
      i386/cpu: Set SEV-SNP CPUID bit when SNP enabled
      i386/sev: Don't return launch measurements for SEV-SNP guests
      i386/sev: Update query-sev QAPI format to handle SEV-SNP
      i386/sev: Set CPU state to protected once SNP guest payload is finalized
      i386/sev: Add support for SNP CPUID validation
      i386/kvm: Add KVM_EXIT_HYPERCALL handling for KVM_HC_MAP_GPA_RANGE
      i386/sev: Enable KVM_HC_MAP_GPA_RANGE hcall for SNP guests
      hw/i386/sev: Use guest_memfd for legacy ROMs
      hw/i386: Add support for loading BIOS using guest_memfd

Pankaj Gupta (7):
      linux-headers: Update to current kvm/next
      i386/sev: Replace error_report with error_setg
      i386/sev: Move sev_launch_update to separate class method
      i386/sev: Move sev_launch_finish to separate class method
      i386/sev: Add sev_kvm_init() override for SEV class
      i386/sev: Add snp_kvm_init() override for SNP class
      i386/sev: Invoke launch_updata_data() for SNP class

Paolo Bonzini (15):
      docs, tests: do not specify scsi=off
      virtio-blk: remove SCSI passthrough functionality
      host/i386: nothing looks at CPUINFO_SSE4
      meson: assume x86-64-v2 baseline ISA
      host/i386: assume presence of CMOV
      host/i386: assume presence of SSE2
      host/i386: assume presence of SSSE3
      host/i386: assume presence of POPCNT
      target/i386: fix xsave.flat from kvm-unit-tests
      update-linux-headers: fix forwarding to asm-generic headers
      update-linux-headers: move pvpanic.h to correct directory
      update-linux-headers: import linux/kvm_para.h header
      machine: allow early use of machine_require_guest_memfd
      i386/sev: Add a class method to determine KVM VM type for SNP guests
      i386/sev: Invoke launch_updata_data() for SEV class

Xiaoyao Li (1):
      memory: Introduce memory_region_init_ram_guest_memfd()

Xinyu Li (2):
      target/i386: fix SSE and SSE2 feature check
      target/i386: fix memory opsize for Mov to/from Seg

Zhao Liu (1):
      target/i386/tcg: Fix RDPID feature check

 docs/about/deprecated.rst                          |   10 -
 docs/about/removed-features.rst                    |    8 +
 docs/pci_expander_bridge.txt                       |    2 +-
 docs/specs/tpm.rst                                 |    2 +-
 docs/system/i386/amd-memory-encryption.rst         |   70 +-
 meson.build                                        |   10 +-
 qapi/misc-target.json                              |   72 +-
 qapi/qom.json                                      |   98 +-
 host/include/i386/host/cpuinfo.h                   |    4 -
 include/exec/confidential-guest-support.h          |    5 +
 include/exec/memory.h                              |    6 +
 include/hw/boards.h                                |    1 -
 include/hw/i386/pc.h                               |   28 +
 include/hw/i386/x86.h                              |    2 +-
 include/standard-headers/linux/kvm_para.h          |   38 +
 include/standard-headers/{linux => misc}/pvpanic.h |    0
 linux-headers/asm-loongarch/kvm.h                  |    4 +
 linux-headers/asm-riscv/kvm.h                      |    1 +
 linux-headers/asm-x86/kvm.h                        |   52 +-
 linux-headers/asm-x86/kvm_para.h                   |    1 +
 linux-headers/linux/kvm_para.h                     |    2 +
 linux-headers/linux/vhost.h                        |   15 +-
 target/i386/kvm/kvm_i386.h                         |    1 +
 target/i386/sev.h                                  |   13 +-
 target/i386/tcg/decode-new.h                       |    3 +
 tcg/i386/tcg-target.h                              |    5 +-
 hw/block/virtio-blk.c                              |  166 +-
 hw/core/machine.c                                  |    4 +-
 hw/i386/pc.c                                       |   14 +-
 hw/i386/pc_sysfw.c                                 |   35 +-
 hw/i386/x86-common.c                               |   19 +-
 hw/misc/pvpanic-isa.c                              |    2 +-
 hw/misc/pvpanic-pci.c                              |    2 +-
 hw/misc/pvpanic.c                                  |    2 +-
 system/memory.c                                    |   24 +
 target/i386/cpu.c                                  |    1 +
 target/i386/kvm/kvm.c                              |   56 +
 target/i386/sev-sysemu-stub.c                      |    6 +-
 target/i386/sev.c                                  | 1581 +++++++++++++++-----
 target/i386/tcg/fpu_helper.c                       |    5 +
 target/i386/tcg/translate.c                        |    2 +-
 util/bufferiszero.c                                |    4 +-
 util/cpuinfo-i386.c                                |    8 +-
 target/i386/tcg/decode-new.c.inc                   |   17 +-
 tcg/i386/tcg-target.c.inc                          |   15 +-
 scripts/update-linux-headers.sh                    |   37 +-
 target/i386/kvm/trace-events                       |    1 +
 target/i386/trace-events                           |    3 +
 tests/avocado/intel_iommu.py                       |    2 +-
 tests/avocado/smmu.py                              |    2 +-
 tests/avocado/tuxrun_baselines.py                  |    2 +-
 51 files changed, 1849 insertions(+), 614 deletions(-)
 create mode 100644 include/standard-headers/linux/kvm_para.h
 rename include/standard-headers/{linux => misc}/pvpanic.h (100%)
 create mode 100644 linux-headers/asm-x86/kvm_para.h
 create mode 100644 linux-headers/linux/kvm_para.h
-- 
2.45.1



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

* [PULL 01/46] docs, tests: do not specify scsi=off
  2024-06-05  9:02 [PULL 00/46] mostly i386 patches for 2024-06-04 Paolo Bonzini
@ 2024-06-05  9:02 ` Paolo Bonzini
  2024-06-05 16:57 ` [PULL 00/46] mostly i386 patches for 2024-06-04 Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2024-06-05  9:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Alex Bennée

This has been the default forever.

Acked-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 docs/pci_expander_bridge.txt      | 2 +-
 docs/specs/tpm.rst                | 2 +-
 tests/avocado/intel_iommu.py      | 2 +-
 tests/avocado/smmu.py             | 2 +-
 tests/avocado/tuxrun_baselines.py | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/pci_expander_bridge.txt b/docs/pci_expander_bridge.txt
index 36750273bb8..540191f5e04 100644
--- a/docs/pci_expander_bridge.txt
+++ b/docs/pci_expander_bridge.txt
@@ -25,7 +25,7 @@ A detailed command line would be:
 -object memory-backend-ram,size=1024M,policy=bind,host-nodes=1,id=ram-node1 -numa node,nodeid=1,cpus=1,memdev=ram-node1
 -device pxb,id=bridge1,bus=pci.0,numa_node=1,bus_nr=4 -netdev user,id=nd -device e1000,bus=bridge1,addr=0x4,netdev=nd
 -device pxb,id=bridge2,bus=pci.0,numa_node=0,bus_nr=8 -device e1000,bus=bridge2,addr=0x3
--device pxb,id=bridge3,bus=pci.0,bus_nr=40 -drive if=none,id=drive0,file=[img] -device virtio-blk-pci,drive=drive0,scsi=off,bus=bridge3,addr=1
+-device pxb,id=bridge3,bus=pci.0,bus_nr=40 -drive if=none,id=drive0,file=[img] -device virtio-blk-pci,drive=drive0,bus=bridge3,addr=1
 
 Here you have:
  - 2 NUMA nodes for the guest, 0 and 1. (both mapped to the same NUMA node in host, but you can and should put it in different host NUMA nodes)
diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst
index 68cb8cf7e65..1ad36ad7099 100644
--- a/docs/specs/tpm.rst
+++ b/docs/specs/tpm.rst
@@ -336,7 +336,7 @@ In case a pSeries machine is emulated, use the following command line:
     -tpmdev emulator,id=tpm0,chardev=chrtpm \
     -device tpm-spapr,tpmdev=tpm0 \
     -device spapr-vscsi,id=scsi0,reg=0x00002000 \
-    -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0 \
+    -device virtio-blk-pci,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0 \
     -drive file=test.img,format=raw,if=none,id=drive-virtio-disk0
 
 In case an Arm virt machine is emulated, use the following command line:
diff --git a/tests/avocado/intel_iommu.py b/tests/avocado/intel_iommu.py
index f04ee1cf9d9..09e694bd403 100644
--- a/tests/avocado/intel_iommu.py
+++ b/tests/avocado/intel_iommu.py
@@ -32,7 +32,7 @@ class IntelIOMMU(LinuxTest):
 
     def set_up_boot(self):
         path = self.download_boot()
-        self.vm.add_args('-device', 'virtio-blk-pci,bus=pcie.0,scsi=off,' +
+        self.vm.add_args('-device', 'virtio-blk-pci,bus=pcie.0,' +
                          'drive=drv0,id=virtio-disk0,bootindex=1,'
                          'werror=stop,rerror=stop' + self.IOMMU_ADDON)
         self.vm.add_args('-device', 'virtio-gpu-pci' + self.IOMMU_ADDON)
diff --git a/tests/avocado/smmu.py b/tests/avocado/smmu.py
index 21ff030ca72..4ebfa7128c7 100644
--- a/tests/avocado/smmu.py
+++ b/tests/avocado/smmu.py
@@ -32,7 +32,7 @@ class SMMU(LinuxTest):
 
     def set_up_boot(self):
         path = self.download_boot()
-        self.vm.add_args('-device', 'virtio-blk-pci,bus=pcie.0,scsi=off,' +
+        self.vm.add_args('-device', 'virtio-blk-pci,bus=pcie.0,' +
                          'drive=drv0,id=virtio-disk0,bootindex=1,'
                          'werror=stop,rerror=stop' + self.IOMMU_ADDON)
         self.vm.add_args('-drive',
diff --git a/tests/avocado/tuxrun_baselines.py b/tests/avocado/tuxrun_baselines.py
index a936a3b7809..736e4aa289c 100644
--- a/tests/avocado/tuxrun_baselines.py
+++ b/tests/avocado/tuxrun_baselines.py
@@ -235,7 +235,7 @@ def ppc64_common_tuxrun(self, sums, prefix):
             self.vm.add_args('-drive', 'file=' + qcow2.name +
                          ',format=qcow2,if=none,id='
                          'drive-virtio-disk1',
-                         '-device', 'virtio-blk-pci,scsi=off,bus=pci.0,'
+                         '-device', 'virtio-blk-pci,bus=pci.0,'
                          'addr=0xb,drive=drive-virtio-disk1,id=virtio-disk1'
                          ',bootindex=2')
             self.common_tuxrun(csums=sums, drive="scsi-hd")
-- 
2.45.1



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

* Re: [PULL 00/46] mostly i386 patches for 2024-06-04
  2024-06-05  9:02 [PULL 00/46] mostly i386 patches for 2024-06-04 Paolo Bonzini
  2024-06-05  9:02 ` [PULL 01/46] docs, tests: do not specify scsi=off Paolo Bonzini
@ 2024-06-05 16:57 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2024-06-05 16:57 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

On 6/5/24 04:02, Paolo Bonzini wrote:
> The following changes since commit 3ab42e46acf867c45bc929fcc37693e327a35a24:
> 
>    Merge tag 'pull-ufs-20240603' ofhttps://gitlab.com/jeuk20.kim/qemu  into staging (2024-06-03 08:18:14 -0500)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/bonzini/qemu.git  tags/for-upstream
> 
> for you to fetch changes up to fc7a69e177e4ba26d11fcf47b853f85115b35a11:
> 
>    hw/i386: Add support for loading BIOS using guest_memfd (2024-06-04 16:44:23 +0200)
> 
> ----------------------------------------------------------------
> * virtio-blk: remove SCSI passthrough functionality
> * require x86-64-v2 baseline ISA
> * SEV-SNP host support
> * fix xsave.flat with TCG
> * fixes for CPUID checks done by TCG

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.


r~



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

end of thread, other threads:[~2024-06-05 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-05  9:02 [PULL 00/46] mostly i386 patches for 2024-06-04 Paolo Bonzini
2024-06-05  9:02 ` [PULL 01/46] docs, tests: do not specify scsi=off Paolo Bonzini
2024-06-05 16:57 ` [PULL 00/46] mostly i386 patches for 2024-06-04 Richard Henderson

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