diff options
-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" ), |