Skip to content
Snippets Groups Projects
  1. Jun 30, 2021
  2. Jun 25, 2021
  3. Jun 23, 2021
    • Thomas Huth's avatar
      ui: Make the DisplayType enum entries conditional · 66c2207f
      Thomas Huth authored
      Libvirt's "domcapabilities" command has a way to state whether certain
      graphic frontends are available in QEMU or not. Originally, libvirt
      looked at the "--help" output of the QEMU binary to determine whether
      SDL was available or not (by looking for the "-sdl" parameter in the
      help text), but since libvirt stopped doing this analysis of the help
      text, the detection of SDL is currently broken, see:
      
       https://bugzilla.redhat.com/show_bug.cgi?id=1790902
      
      
      
      QEMU should provide a way via the QMP interface instead. A simple way,
      without introducing additional commands, is to make the DisplayType
      enum entries conditional, so that the enum only contains the entries if
      the corresponding CONFIG_xxx switches have been set. This of course
      only gives an indication which possibilities have been enabled during
      compile-time of QEMU (and does not take into account whether modules
      are later available or not for example - for this we'd need a separate
      command), but anyway, this should already be good enough for the above
      bug ticket, and it's a good idea anyway to make the QMP interface
      conditional here, so let's simply do it.
      
      Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
      Message-Id: <20210615090439.70926-1-thuth@redhat.com>
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      66c2207f
    • Akihiko Odaki's avatar
      input: Add lang1 and lang2 to QKeyCode · d7696ff8
      Akihiko Odaki authored
      
      lang1 and lang2 represents the keys with the same names in the
      keyboard/keypad usage page (0x07) included in the "HID Usage Tables for
      Universal Serial Bus (USB)" version 1.22. Although the keys are
      described as "Hangul/English toggle key" and "Hanja conversion key" in
      the specification, the meaning depends on the variety of the keyboard,
      and it will be used as the representations of Kana and Eisu keys on
      Japanese Macs in qemu_input_map_osx_to_qcode, which is used by ui/gtk.
      
      Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@gmail.com>
      Message-Id: <20210617023113.2441-2-akihiko.odaki@gmail.com>
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      d7696ff8
  4. Jun 15, 2021
  5. Jun 11, 2021
  6. Jun 08, 2021
  7. Jun 02, 2021
  8. Jun 01, 2021
    • Brijesh Singh's avatar
      target/i386/sev: add support to query the attestation report · 3ea1a802
      Brijesh Singh authored
      
      The SEV FW >= 0.23 added a new command that can be used to query the
      attestation report containing the SHA-256 digest of the guest memory
      and VMSA encrypted with the LAUNCH_UPDATE and sign it with the PEK.
      
      Note, we already have a command (LAUNCH_MEASURE) that can be used to
      query the SHA-256 digest of the guest memory encrypted through the
      LAUNCH_UPDATE. The main difference between previous and this command
      is that the report is signed with the PEK and unlike the LAUNCH_MEASURE
      command the ATTESATION_REPORT command can be called while the guest
      is running.
      
      Add a QMP interface "query-sev-attestation-report" that can be used
      to get the report encoded in base64.
      
      Cc: James Bottomley <jejb@linux.ibm.com>
      Cc: Tom Lendacky <Thomas.Lendacky@amd.com>
      Cc: Eric Blake <eblake@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: kvm@vger.kernel.org
      Reviewed-by: default avatarJames Bottomley <jejb@linux.ibm.com>
      Tested-by: default avatarJames Bottomley <jejb@linux.ibm.com>
      Signed-off-by: default avatarBrijesh Singh <brijesh.singh@amd.com>
      Reviewed-by: default avatarConnor Kuehl <ckuehl@redhat.com>
      Message-Id: <20210429170728.24322-1-brijesh.singh@amd.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      3ea1a802
  9. May 26, 2021
  10. May 21, 2021
  11. May 13, 2021
  12. May 12, 2021
  13. Apr 20, 2021
  14. Apr 14, 2021
  15. Apr 08, 2021
  16. Apr 01, 2021
    • Paolo Bonzini's avatar
      qapi: qom: do not use target-specific conditionals · a061a71e
      Paolo Bonzini authored
      
      ObjectType and ObjectOptions are defined in a target-independent file,
      therefore they do not have access to target-specific configuration
      symbols such as CONFIG_PSERIES or CONFIG_SEV.  For this reason,
      pef-guest and sev-guest are currently omitted when compiling the
      generated QAPI files.  In addition, this causes ObjectType to have
      different definitions depending on the file that is including
      qapi-types-qom.h (currently this is not causing any issues, but it
      is wrong).
      
      Define the two enum entries and the SevGuestProperties type
      unconditionally to avoid the issue.  We do not expect to have
      many target-dependent user-creatable classes, so it is not
      particularly problematic.
      
      Reported-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a061a71e
  17. Mar 23, 2021
  18. Mar 19, 2021
Loading