1. 27 6月, 2018 1 次提交
  2. 26 6月, 2018 1 次提交
  3. 20 6月, 2018 2 次提交
  4. 14 6月, 2018 4 次提交
  5. 13 6月, 2018 1 次提交
  6. 12 6月, 2018 1 次提交
  7. 06 6月, 2018 4 次提交
    • S
      qemu: Add swtpm to emulator cgroup · 3f1a7070
      Stefan Berger 提交于
      Add the external swtpm to the emulator cgroup so that upper limits of CPU
      usage can be enforced on the emulated TPM.
      
      To enable this we need to have the swtpm write its process id (pid) into a
      file. We then read it from the file to configure the emulator cgroup.
      
      The PID file is created in /var/run/libvirt/qemu/swtpm:
      
      [root@localhost swtpm]# ls -lZ /var/run/libvirt/qemu/swtpm/
      total 4
      -rw-r--r--. 1 tss  tss  system_u:object_r:qemu_var_run_t:s0          5 Apr 10 12:26 1-testvm-swtpm.pid
      srw-rw----. 1 qemu qemu system_u:object_r:svirt_image_t:s0:c597,c632 0 Apr 10 12:26 1-testvm-swtpm.sock
      
      The swtpm command line now looks as follows:
      
      root@localhost testvm]# ps auxZ | grep swtpm | grep socket | grep -v grep
      system_u:system_r:virtd_t:s0:c597,c632 tss 18697 0.0  0.0 28172 3892 ?       Ss   16:46   0:00 /usr/bin/swtpm socket --daemon --ctrl type=unixio,path=/var/run/libvirt/qemu/swtpm/1-testvm-swtpm.sock,mode=0600 --tpmstate dir=/var/lib/libvirt/swtpm/485d0004-a48f-436a-8457-8a3b73e28568/tpm1.2/ --log file=/var/log/swtpm/libvirt/qemu/testvm-swtpm.log --pid file=/var/run/libvirt/qemu/swtpm/1-testvm-swtpm.pid
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      3f1a7070
    • S
      qemu: Extend QEMU with external TPM support · 2a606b86
      Stefan Berger 提交于
      Implement functions for managing the storage of the external swtpm as well
      as starting and stopping it. Also implement functions to use swtpm_setup,
      which simulates the manufacturing of a TPM, which includes creation of
      certificates for the device.
      
      Further, the external TPM needs storage on the host that we need to set
      up before it can be run. We can clean up the host once the domain is
      undefined.
      
      This patch also implements a small layer for external device support that
      calls into the TPM device layer if a domain has an attached TPM. This is
      the layer we will wire up later on.
      Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      2a606b86
    • R
      all: Replace virGetLastError with virGetLastErrorCode where we can · 2b6667ab
      ramyelkest 提交于
      Replace instances where we previously called virGetLastError just to
      either get the code or to check if an error exists with
      virGetLastErrorCode to avoid a validity pre-check.
      Signed-off-by: NRamy Elkest <ramyelkest@gmail.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      2b6667ab
    • D
      qemu: don't retry connect() if doing FD passing · 7ef0471b
      Daniel P. Berrangé 提交于
      Since libvirt called bind() and listen() on the UNIX socket, it is
      guaranteed that connect() will immediately succeed, if QEMU is running
      normally. It will only fail if QEMU has closed the monitor socket by
      mistake or if QEMU has exited, letting the kernel close it.
      
      With this in mind we can remove the retry loop and timeout when
      connecting to the QEMU monitor if we are doing FD passing. Libvirt can
      go straight to sending the QMP greeting and will simply block waiting
      for a reply until QEMU is ready.
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      7ef0471b
  8. 05 6月, 2018 2 次提交
  9. 29 5月, 2018 1 次提交
  10. 25 5月, 2018 1 次提交
  11. 23 5月, 2018 1 次提交
  12. 21 5月, 2018 1 次提交
  13. 16 5月, 2018 3 次提交
  14. 11 5月, 2018 2 次提交
  15. 04 5月, 2018 2 次提交
  16. 17 4月, 2018 8 次提交
  17. 12 4月, 2018 2 次提交
  18. 10 4月, 2018 3 次提交