Skip to content
Snippets Groups Projects
  1. May 26, 2022
  2. May 16, 2022
  3. Apr 27, 2022
  4. Apr 25, 2022
  5. Apr 21, 2022
  6. Apr 20, 2022
  7. Apr 06, 2022
  8. Mar 22, 2022
  9. Mar 21, 2022
  10. Mar 04, 2022
  11. Mar 02, 2022
  12. Feb 21, 2022
  13. Jan 28, 2022
  14. Jan 18, 2022
  15. Dec 21, 2021
  16. Dec 10, 2021
    • Yang Zhong's avatar
      numa: Enable numa for SGX EPC sections · 11058123
      Yang Zhong authored
      
      The basic SGX did not enable numa for SGX EPC sections, which
      result in all EPC sections located in numa node 0. This patch
      enable SGX numa function in the guest and the EPC section can
      work with RAM as one numa node.
      
      The Guest kernel related log:
      [    0.009981] ACPI: SRAT: Node 0 PXM 0 [mem 0x180000000-0x183ffffff]
      [    0.009982] ACPI: SRAT: Node 1 PXM 1 [mem 0x184000000-0x185bfffff]
      The SRAT table can normally show SGX EPC sections menory info in different
      numa nodes.
      
      The SGX EPC numa related command:
       ......
       -m 4G,maxmem=20G \
       -smp sockets=2,cores=2 \
       -cpu host,+sgx-provisionkey \
       -object memory-backend-ram,size=2G,host-nodes=0,policy=bind,id=node0 \
       -object memory-backend-epc,id=mem0,size=64M,prealloc=on,host-nodes=0,policy=bind \
       -numa node,nodeid=0,cpus=0-1,memdev=node0 \
       -object memory-backend-ram,size=2G,host-nodes=1,policy=bind,id=node1 \
       -object memory-backend-epc,id=mem1,size=28M,prealloc=on,host-nodes=1,policy=bind \
       -numa node,nodeid=1,cpus=2-3,memdev=node1 \
       -M sgx-epc.0.memdev=mem0,sgx-epc.0.node=0,sgx-epc.1.memdev=mem1,sgx-epc.1.node=1 \
       ......
      
      Signed-off-by: default avatarYang Zhong <yang.zhong@intel.com>
      Message-Id: <20211101162009.62161-2-yang.zhong@intel.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      11058123
  17. Nov 02, 2021
  18. Oct 31, 2021
  19. Oct 29, 2021
  20. Oct 02, 2021
  21. Sep 30, 2021
    • Yang Zhong's avatar
      sgx-epc: Add the fill_device_info() callback support · a7c565a9
      Yang Zhong authored
      
      Since there is no fill_device_info() callback support, and when we
      execute "info memory-devices" command in the monitor, the segfault
      will be found.
      
      This patch will add this callback support and "info memory-devices"
      will show sgx epc memory exposed to guest. The result as below:
      
      qemu) info memory-devices
      Memory device [sgx-epc]: ""
        memaddr: 0x180000000
        size: 29360128
        memdev: /objects/mem1
      Memory device [sgx-epc]: ""
        memaddr: 0x181c00000
        size: 10485760
        memdev: /objects/mem2
      
      Signed-off-by: default avatarYang Zhong <yang.zhong@intel.com>
      Message-Id: <20210719112136.57018-33-yang.zhong@intel.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a7c565a9
  22. Sep 27, 2021
    • Markus Armbruster's avatar
      hmp: Unbreak "change vnc" · 6193344f
      Markus Armbruster authored
      
      HMP command "change vnc" can take the password as argument, or prompt
      for it:
      
          (qemu) change vnc password 123
          (qemu) change vnc password
          Password: ***
          (qemu)
      
      This regressed in commit cfb5387a "hmp: remove "change vnc TARGET"
      command", v6.0.0.
      
          (qemu) change vnc passwd 123
          Password: ***
          (qemu) change vnc passwd
          (qemu)
      
      The latter passes NULL to qmp_change_vnc_password(), which is a no-no.
      Looks like it puts the display into "password required, but none set"
      state.
      
      The logic error is easy to miss in review, but testing should've
      caught it.
      
      Fix the obvious way.
      
      Fixes: cfb5387a
      Cc: qemu-stable@nongnu.org
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Message-Id: <20210909081219.308065-2-armbru@redhat.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      6193344f
    • Markus Armbruster's avatar
      qapi: Convert simple union TpmTypeOptions to flat one · 39dc3e4a
      Markus Armbruster authored
      
      Simple unions predate flat unions.  Having both complicates the QAPI
      schema language and the QAPI generator.  We haven't been using simple
      unions in new code for a long time, because they are less flexible and
      somewhat awkward on the wire.
      
      To prepare for their removal, convert simple union TpmTypeOptions to
      an equivalent flat one, with existing enum TpmType replacing implicit
      enum TpmTypeOptionsKind.  Adds some boilerplate to the schema, which
      is a bit ugly, but a lot easier to maintain than the simple union
      feature.
      
      Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Acked-by: default avatarStefan Berger <stefanb@linux.ibm.com>
      Reviewed-by: default avatarEric Blake <eblake@redhat.com>
      Message-Id: <20210917143134.412106-6-armbru@redhat.com>
      [Indentation tidied up]
      39dc3e4a
  23. Aug 26, 2021
Loading