'Create a PCI device based on hypervisor information.
As the device object is just created and is not synced with db yet
thus we should not reset changes here for fields from dict.'

@classmethod
def create(cls, context, dev_dict):

    pci_device = cls()
    pci_device.update_device(dev_dict)
    pci_device.status = fields.PciDeviceStatus.AVAILABLE
    pci_device.uuid = uuidutils.generate_uuid()
    pci_device._context = context
    return pci_device
