qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 7f7c8d: i386: docs: Briefly describe KVM PV f


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] 7f7c8d: i386: docs: Briefly describe KVM PV features
Date: Tue, 05 Oct 2021 11:31:22 -0700

  Branch: refs/heads/staging
  Home:   https://github.com/qemu/qemu
  Commit: 7f7c8d0ce3630849a4df3d627b11de354fcb3bb0
      
https://github.com/qemu/qemu/commit/7f7c8d0ce3630849a4df3d627b11de354fcb3bb0
  Author: Vitaly Kuznetsov <vkuznets@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    A docs/system/i386/kvm-pv.rst
    M docs/system/target-i386.rst

  Log Message:
  -----------
  i386: docs: Briefly describe KVM PV features

KVM PV features don't seem to be documented anywhere, in particular, the
fact that some of the features are enabled by default and some are not can
only be figured out from the code.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211004140445.624875-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: cff03145ed3cec5c7bd542ea2e6b4458439e0bb0
      
https://github.com/qemu/qemu/commit/cff03145ed3cec5c7bd542ea2e6b4458439e0bb0
  Author: Dov Murik <dovmurik@linux.ibm.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M target/i386/sev-stub.c
    M target/i386/sev.c
    M target/i386/sev_i386.h

  Log Message:
  -----------
  sev/i386: Introduce sev_add_kernel_loader_hashes for measured linux boot

Add the sev_add_kernel_loader_hashes function to calculate the hashes of
the kernel/initrd/cmdline and fill a designated OVMF encrypted hash
table area.  For this to work, OVMF must support an encrypted area to
place the data which is advertised via a special GUID in the OVMF reset
table.

The hashes of each of the files is calculated (or the string in the case
of the cmdline with trailing '\0' included).  Each entry in the hashes
table is GUID identified and since they're passed through the
sev_encrypt_flash interface, the hashes will be accumulated by the AMD
PSP measurement (SEV_LAUNCH_MEASURE).

Co-developed-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210930054915.13252-2-dovmurik@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: c0c2d319d6714517cc4e0332edf99f2fccaa9442
      
https://github.com/qemu/qemu/commit/c0c2d319d6714517cc4e0332edf99f2fccaa9442
  Author: Dov Murik <dovmurik@linux.ibm.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M hw/i386/x86.c

  Log Message:
  -----------
  x86/sev: generate SEV kernel loader hashes in x86_load_linux

If SEV is enabled and a kernel is passed via -kernel, pass the hashes of
kernel/initrd/cmdline in an encrypted guest page to OVMF for SEV
measured boot.

Co-developed-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210930054915.13252-3-dovmurik@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 93ddefbc3c909bb6c3b76086f1dfc8ad98dd3725
      
https://github.com/qemu/qemu/commit/93ddefbc3c909bb6c3b76086f1dfc8ad98dd3725
  Author: Pedro Tôrres <t0rr3sp3dr0@gmail.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M hw/misc/applesmc.c

  Log Message:
  -----------
  hw/misc: applesmc: use host osk as default on macs

When running on a Mac, QEMU is able to get the host OSK and use it as
the default value for the AppleSMC device. The OSK query operation
doesn't require administrator privileges and can be executed by any user
on the system. This patch is based on open-source code from Apple, just
like the implementation from VirtualBox.

Apple:
https://opensource.apple.com/source/IOKitUser/IOKitUser-647.6.13/pwr_mgt.subproj/IOPMLibPrivate.c
https://opensource.apple.com/source/PowerManagement/PowerManagement-637.60.1/pmconfigd/PrivateLib.c

VirtualBox:
https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Devices/EFI/DevSmc.cpp#L516

Signed-off-by: Pedro Tôrres <t0rr3sp3dr0@gmail.com>


  Commit: 4dba27890844146d69e84916d024697947821655
      
https://github.com/qemu/qemu/commit/4dba27890844146d69e84916d024697947821655
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M configure

  Log Message:
  -----------
  configure, meson: move CPU_CFLAGS out of QEMU_CFLAGS

Flags that choose the target architecture, such as -m32 on x86, affect
all invocations of the compiler driver, for example including options
such as --print-search-dirs.  To ensure that they are treated as such,
place them in the cross file in the [binaries] section instead of
including them in QEMU_CFLAGS.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 3c158eba1e11e52dbd0e14fc8fd40ec80abca436
      
https://github.com/qemu/qemu/commit/3c158eba1e11e52dbd0e14fc8fd40ec80abca436
  Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M migration/block-dirty-bitmap.c

  Log Message:
  -----------
  migration: block-dirty-bitmap: add missing qemu_mutex_lock_iothread

init_dirty_bitmap_migration assumes the iothread lock (BQL)
to be held, but instead it isn't.

Instead of adding the lock to qemu_savevm_state_setup(),
follow the same pattern as the other ->save_setup callbacks
and lock+unlock inside dirty_bitmap_save_setup().

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211005080751.3797161-2-eesposit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 68b88468f6a4144bf0217624fbb0ff6b0fa1d694
      
https://github.com/qemu/qemu/commit/68b88468f6a4144bf0217624fbb0ff6b0fa1d694
  Author: Emanuele Giuseppe Esposito <eesposit@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M migration/migration.c

  Log Message:
  -----------
  migration: add missing qemu_mutex_lock_iothread in migration_completion

qemu_savevm_state_complete_postcopy assumes the iothread lock (BQL)
to be held, but instead it isn't.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20211005080751.3797161-3-eesposit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 69c4c5c1c47f5dac140eb6485c5281a9f145dcf3
      
https://github.com/qemu/qemu/commit/69c4c5c1c47f5dac140eb6485c5281a9f145dcf3
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M meson

  Log Message:
  -----------
  meson: bump submodule to 0.59.2

The update to 0.57 has been delayed due to it causing warnings for
some actual issues, but it brings in important bugfixes and new
features.  0.58 also brings in a bugfix that is useful for modinfo.

Important bugfixes:

- 0.57: https://github.com/mesonbuild/meson/pull/7760, build: use PIE
objects for non-PIC static libraries if b_pie=true

- 0.57: https://github.com/mesonbuild/meson/pull/7900, thus avoiding
unnecessary rebuilds after running meson.

- 0.58.2: https://github.com/mesonbuild/meson/pull/8900, fixes for
passing extract_objects() to custom_target (useful for modinfo)

Features:

- 0.57: the keyval module has now been stabilized

- 0.57: env argument to custom_target (useful for hexagon)

- 0.57: Feature parity between "meson test" and QEMU's TAP driver

- 0.57: https://github.com/mesonbuild/meson/pull/8231, allows bringing
back version numbers in the configuration summary

- 0.59: Utility methods for feature objects

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 654d6b0453aa6eb19af0d75b0f087a97a5776da7
      
https://github.com/qemu/qemu/commit/654d6b0453aa6eb19af0d75b0f087a97a5776da7
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M configure
    M docs/meson.build
    M meson.build
    M plugins/meson.build
    M scripts/mtest2make.py
    M tests/qapi-schema/meson.build
    M tests/qtest/meson.build
    M tests/unit/meson.build
    M trace/meson.build

  Log Message:
  -----------
  meson: switch minimum meson version to 0.58.2, minimum recommended to 0.59.2

Meson 0.58.2 does not need b_staticpic=$pie anymore, and has
stabilized the keyval module.  Remove the workaround and use a few
replacements for features deprecated in the 0.57.0 release cycle.

One feature that we would like to use is passing dependencies to
summary.  However, that was broken in 0.59.0 and 0.59.1.  Therefore,
use the embedded Meson if the host has anything older than 0.59.2,
but allow --meson= to use 0.58.2.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 0a11c44e891221a584bf06e75871dd1425555a65
      
https://github.com/qemu/qemu/commit/0a11c44e891221a584bf06e75871dd1425555a65
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M target/hexagon/meson.build

  Log Message:
  -----------
  hexagon: use env keyword argument to pass PYTHONPATH

This feature is new in meson 0.57 and allows getting rid of the "env" wrapper.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 2796032a51c635464481a9212e941da53b3b3a61
      
https://github.com/qemu/qemu/commit/2796032a51c635464481a9212e941da53b3b3a61
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    A target/xtensa/cores.list
    M target/xtensa/import_core.sh
    M target/xtensa/meson.build

  Log Message:
  -----------
  target/xtensa: list cores in a text file

Avoid that leftover files affect the build; instead, use the same
mechanism that was in place before the Meson transition of updating
a file from import_core.sh.  Starting with Meson 0.57, the file
can be easily read from the filesystem module, so do that instead
of using run_command.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: bb647c49b8f1f986d8171dd61db65e8a8d255be0
      
https://github.com/qemu/qemu/commit/bb647c49b8f1f986d8171dd61db65e8a8d255be0
  Author: Paolo Bonzini <pbonzini@redhat.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M meson.build

  Log Message:
  -----------
  meson: show library versions in the summary

Meson 0.57 allows passing external programs and dependency objects
to summary().  Use this to show library versions and paths in the
summary.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>


  Commit: 08a9b68dc033c9826da89f84202e547beadd92f0
      
https://github.com/qemu/qemu/commit/08a9b68dc033c9826da89f84202e547beadd92f0
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M configure
    M docs/meson.build
    A docs/system/i386/kvm-pv.rst
    M docs/system/target-i386.rst
    M hw/i386/x86.c
    M hw/misc/applesmc.c
    M meson
    M meson.build
    M migration/block-dirty-bitmap.c
    M migration/migration.c
    M plugins/meson.build
    M scripts/mtest2make.py
    M target/hexagon/meson.build
    M target/i386/sev-stub.c
    M target/i386/sev.c
    M target/i386/sev_i386.h
    A target/xtensa/cores.list
    M target/xtensa/import_core.sh
    M target/xtensa/meson.build
    M tests/qapi-schema/meson.build
    M tests/qtest/meson.build
    M tests/unit/meson.build
    M trace/meson.build

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging

* Meson version update
* fix search path when configuring with --cpu
* support for measured SEV boot with -kernel (Dov)
* fix missing BQL locks (Emanuele)
* retrieve applesmc key from the host (Pedro)
* KVM PV feature documentation (Vitaly)

# gpg: Signature made Tue 05 Oct 2021 04:13:00 AM PDT
# gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
# gpg:                issuer "pbonzini@redhat.com"
# gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
# gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]

* remotes/bonzini/tags/for-upstream:
  meson: show library versions in the summary
  target/xtensa: list cores in a text file
  hexagon: use env keyword argument to pass PYTHONPATH
  meson: switch minimum meson version to 0.58.2, minimum recommended to 0.59.2
  meson: bump submodule to 0.59.2
  migration: add missing qemu_mutex_lock_iothread in migration_completion
  migration: block-dirty-bitmap: add missing qemu_mutex_lock_iothread
  configure, meson: move CPU_CFLAGS out of QEMU_CFLAGS
  hw/misc: applesmc: use host osk as default on macs
  x86/sev: generate SEV kernel loader hashes in x86_load_linux
  sev/i386: Introduce sev_add_kernel_loader_hashes for measured linux boot
  i386: docs: Briefly describe KVM PV features

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/dfaac50f1e4f...08a9b68dc033



reply via email to

[Prev in Thread] Current Thread [Next in Thread]