diff options
Diffstat (limited to 'core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/virtualization')
-rw-r--r-- | core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/virtualization/LibvirtHypervisorQemu.java | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/virtualization/LibvirtHypervisorQemu.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/virtualization/LibvirtHypervisorQemu.java index 260c3f4e..34cf33cf 100644 --- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/virtualization/LibvirtHypervisorQemu.java +++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/virtualization/LibvirtHypervisorQemu.java @@ -3,13 +3,31 @@ package org.openslx.runvirt.plugin.qemu.virtualization; import org.openslx.runvirt.virtualization.LibvirtHypervisor; import org.openslx.runvirt.virtualization.LibvirtHypervisorException; +/** + * Representation of the Libvirt QEMU hypervisor backend. + * + * @author Manuel Bentele + * @version 1.0 + */ public class LibvirtHypervisorQemu extends LibvirtHypervisor { + /** + * Creates a new Libvirt QEMU hypervisor backend and connects to the specified backend. + * + * @param type session type of the connection to the Libvirt QEMU hypervisor backend. + * @throws LibvirtHypervisorException failed to connect to the Libvirt QEMU hypervisor backend. + */ public LibvirtHypervisorQemu( QemuSessionType type ) throws LibvirtHypervisorException { super( type.getConnectionUri() ); } + /** + * Type of Libvirt QEMU hypervisor backend session. + * + * @author Manuel Bentele + * @version 1.0 + */ public enum QemuSessionType { // @formatter:off @@ -17,23 +35,29 @@ public class LibvirtHypervisorQemu extends LibvirtHypervisor LOCAL_USER_SESSION ( "qemu:///session" ); // @formatter:on + /** + * Connection URI of the QEMU session type. + */ private final String connectionUri; + /** + * Creates a new QEMU session type. + * + * @param connectionUri URI for the connection of the session. + */ QemuSessionType( String connectionUri ) { this.connectionUri = connectionUri; } + /** + * Returns the URI of the connection for the session. + * + * @return URI of the connection for the session. + */ public String getConnectionUri() { return this.connectionUri; } - - // TODO: - // Implement capabilities -> get host architecture => decision whether to emulate or use KVM? -> change domain of XML - // fill in given HDD file, CDROM, ... - // GPU-Passthrough: patch XML with hypervisor disable bit, ..., to get Nvidia driver working - // Add hostdev für GPU passthrough -> add PCI ID arguments to cmdln parser - // } } |