Skip to content

Commit

Permalink
add NVME and USB3 controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed Jan 19, 2024
1 parent e9672f9 commit 4321c79
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ova-compose/ova-compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,18 @@ class RasdSataController(RasdController):
def xml_item(self, required, element_name):
item = super().xml_item(required, element_name)
item.append(self.xml_element('ResourceSubType', 'vmware.sata.ahci'))

return item


class RasdNvmeController(RasdController):
resource_type = 20
description = "NVME Controller"


def xml_item(self, required, element_name):
item = super().xml_item(required, element_name)
item.append(self.xml_element('ResourceSubType', 'vmware.nvme.controller'))

return item

Expand Down Expand Up @@ -359,6 +371,17 @@ def xml_item(self, required, element_name):
return item


class RasdUsb3Controller(RasdItem):
resource_type = 23
description = "USB3 Controller"


def xml_item(self, required, element_name):
item = super().xml_item(required, element_name)
item.append(self.xml_element('ResourceSubType', 'vmware.usb.xhci'))
return item


class RasdVmci(RasdItem):
resource_type = 1
description = "VMCI"
Expand Down

0 comments on commit 4321c79

Please sign in to comment.