• D
    qemu: add support for running QEMU driver in embedded mode · 068efae5
    Daniel P. Berrangé 提交于
    This enables support for running QEMU embedded to the calling
    application process using a URI:
    
       qemu:///embed?root=/some/path
    
    Note that it is important to keep the path reasonably short to
    avoid risk of hitting the limit on UNIX socket path names
    which is 108 characters.
    
    When using the embedded mode with a root=/var/tmp/embed, the
    driver will use the following paths:
    
                    logDir: /var/tmp/embed/log/qemu
               swtpmLogDir: /var/tmp/embed/log/swtpm
             configBaseDir: /var/tmp/embed/etc/qemu
                  stateDir: /var/tmp/embed/run/qemu
             swtpmStateDir: /var/tmp/embed/run/swtpm
                  cacheDir: /var/tmp/embed/cache/qemu
                    libDir: /var/tmp/embed/lib/qemu
           swtpmStorageDir: /var/tmp/embed/lib/swtpm
     defaultTLSx509certdir: /var/tmp/embed/etc/pki/qemu
    
    These are identical whether the embedded driver is privileged
    or unprivileged.
    
    This compares with the system instance which uses
    
                    logDir: /var/log/libvirt/qemu
               swtpmLogDir: /var/log/swtpm/libvirt/qemu
             configBaseDir: /etc/libvirt/qemu
                  stateDir: /run/libvirt/qemu
             swtpmStateDir: /run/libvirt/qemu/swtpm
                  cacheDir: /var/cache/libvirt/qemu
                    libDir: /var/lib/libvirt/qemu
           swtpmStorageDir: /var/lib/libvirt/swtpm
     defaultTLSx509certdir: /etc/pki/qemu
    
    At this time all features present in the QEMU driver are available when
    running in embedded mode, availability matching whether the embedded
    driver is privileged or unprivileged.
    Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    068efae5
qemu_conf.c 61.0 KB