diff options
author | Manuel Bentele | 2021-08-16 11:10:28 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-08-16 11:10:28 +0200 |
commit | 75a4825bf48ef332525f13fe935e410d61c8c6a0 (patch) | |
tree | 246fc2d1d60efecc9dabc07c07f16f2d83ed92fe | |
parent | [virtualizer] Get rid of Generics for VirtualizationConfiguration (diff) | |
download | master-sync-shared-75a4825bf48ef332525f13fe935e410d61c8c6a0.tar.gz master-sync-shared-75a4825bf48ef332525f13fe935e410d61c8c6a0.tar.xz master-sync-shared-75a4825bf48ef332525f13fe935e410d61c8c6a0.zip |
Add 'ramfb' option to Libvirt's mediated device representation
-rw-r--r-- | src/main/java/org/openslx/libvirt/domain/device/HostdevMdev.java | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/HostdevMdev.java b/src/main/java/org/openslx/libvirt/domain/device/HostdevMdev.java index d25a6eb..7f6bb81 100644 --- a/src/main/java/org/openslx/libvirt/domain/device/HostdevMdev.java +++ b/src/main/java/org/openslx/libvirt/domain/device/HostdevMdev.java @@ -50,6 +50,26 @@ public class HostdevMdev extends Hostdev implements HostdevAddressableSource<Hos } /** + * Checks whether the hostdev mediated device memory framebuffer is on or off. + * + * @return state whether the hostdev mediated device memory framebuffer is on or off. + */ + public boolean isMemoryFramebufferOn() + { + return this.getXmlElementAttributeValueAsBool( "ramfb" ); + } + + /** + * Sets the state of the hostdev mediated device memory framebuffer. + * + * @param on state whether the hostdev mediated device memory framebuffer is on or off. + */ + public void setMemoryFramebufferOn( boolean on ) + { + this.setXmlElementAttributeValueOnOff( "ramfb", on ); + } + + /** * Returns the hostdev mediated device model. * * @return hostdev mediated device model. @@ -112,7 +132,7 @@ public class HostdevMdev extends Hostdev implements HostdevAddressableSource<Hos * @author Manuel Bentele * @version 1.0 */ - enum Model + public enum Model { // @formatter:off VFIO_PCI( "vfio-pci" ), |