Displaying 20 results from an estimated 25 matches for "class_code".
2012 Mar 19
2
[PATCH RFC] virtio-pci: add MMIO property
...t;tx", VirtIOPCIProxy, net.tx),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST(),
};
@@ -888,6 +897,7 @@ static Property virtio_serial_properties[] = {
DEFINE_PROP_HEX32("class", VirtIOPCIProxy, class_code, 0),
DEFINE_VIRTIO_COMMON_FEATURES(VirtIOPCIProxy, host_features),
DEFINE_PROP_UINT32("max_ports", VirtIOPCIProxy, serial.max_virtserial_ports, 31),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST()...
2012 Mar 19
2
[PATCH RFC] virtio-pci: add MMIO property
...t;tx", VirtIOPCIProxy, net.tx),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST(),
};
@@ -888,6 +897,7 @@ static Property virtio_serial_properties[] = {
DEFINE_PROP_HEX32("class", VirtIOPCIProxy, class_code, 0),
DEFINE_VIRTIO_COMMON_FEATURES(VirtIOPCIProxy, host_features),
DEFINE_PROP_UINT32("max_ports", VirtIOPCIProxy, serial.max_virtserial_ports, 31),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST()...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 1/7] userspace virtio
...ING_AVAIL_F_NO_INTERRUPT)
+ return;
+
+ vdev->isr = 1;
+ virtio_update_irq(vdev);
+}
+
+VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
+ uint16_t vendor, uint16_t device,
+ uint16_t subvendor, uint16_t subdevice,
+ uint8_t class_code, uint8_t subclass_code,
+ uint8_t pif, size_t config_size,
+ size_t struct_size)
+{
+ VirtIODevice *vdev;
+ PCIDevice *pci_dev;
+ uint8_t *config;
+
+ pci_dev = pci_register_device(bus, name, struct_size,
+ -1, NULL, NULL);
+ vdev =...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 1/7] userspace virtio
...ING_AVAIL_F_NO_INTERRUPT)
+ return;
+
+ vdev->isr = 1;
+ virtio_update_irq(vdev);
+}
+
+VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
+ uint16_t vendor, uint16_t device,
+ uint16_t subvendor, uint16_t subdevice,
+ uint8_t class_code, uint8_t subclass_code,
+ uint8_t pif, size_t config_size,
+ size_t struct_size)
+{
+ VirtIODevice *vdev;
+ PCIDevice *pci_dev;
+ uint8_t *config;
+
+ pci_dev = pci_register_device(bus, name, struct_size,
+ -1, NULL, NULL);
+ vdev =...
2012 Mar 19
1
[PATCHv2] virtio-pci: add MMIO property
...t;tx", VirtIOPCIProxy, net.tx),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST(),
};
@@ -888,6 +949,7 @@ static Property virtio_serial_properties[] = {
DEFINE_PROP_HEX32("class", VirtIOPCIProxy, class_code, 0),
DEFINE_VIRTIO_COMMON_FEATURES(VirtIOPCIProxy, host_features),
DEFINE_PROP_UINT32("max_ports", VirtIOPCIProxy, serial.max_virtserial_ports, 31),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST()...
2012 Mar 19
1
[PATCHv2] virtio-pci: add MMIO property
...t;tx", VirtIOPCIProxy, net.tx),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST(),
};
@@ -888,6 +949,7 @@ static Property virtio_serial_properties[] = {
DEFINE_PROP_HEX32("class", VirtIOPCIProxy, class_code, 0),
DEFINE_VIRTIO_COMMON_FEATURES(VirtIOPCIProxy, host_features),
DEFINE_PROP_UINT32("max_ports", VirtIOPCIProxy, serial.max_virtserial_ports, 31),
+ DEFINE_PROP_BIT("mmio", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_MMIO_BIT, false),
DEFINE_PROP_END_OF_LIST()...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...->config);
qemu_free(vdev->vq);
@@ -761,7 +839,8 @@ VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
uint16_t vendor, uint16_t device,
uint16_t subvendor, uint16_t subdevice,
uint16_t class_code, uint8_t pif,
- size_t config_size, size_t struct_size)
+ size_t config_size, size_t struct_size,
+ int nvectors)
{
VirtIODevice *vdev;
PCIDevice *pci_dev;
@@ -775,6 +854,7 @@ VirtIODevice *virtio_init...
2009 May 11
0
[PATCH 1/2] qemu-kvm: add MSI-X support
...->config);
qemu_free(vdev->vq);
@@ -761,7 +839,8 @@ VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
uint16_t vendor, uint16_t device,
uint16_t subvendor, uint16_t subdevice,
uint16_t class_code, uint8_t pif,
- size_t config_size, size_t struct_size)
+ size_t config_size, size_t struct_size,
+ int nvectors)
{
VirtIODevice *vdev;
PCIDevice *pci_dev;
@@ -775,6 +854,7 @@ VirtIODevice *virtio_init...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...+84,11 @@ struct VirtIOPCIProxy {
PCIDevice pci_dev;
VirtIODevice *vdev;
MemoryRegion bar;
+ MemoryRegion config_bar;
+ MemoryRegion config_common;
+ MemoryRegion config_isr;
+ MemoryRegion config_notify;
+ MemoryRegion config_device;
uint32_t flags;
uint32_t class_code;
uint32_t nvectors;
@@ -93,6 +98,8 @@ struct VirtIOPCIProxy {
VirtIOIRQFD *vector_irqfd;
int nvqs_with_notifiers;
VirtioBusState bus;
+ unsigned device_feature_select;
+ unsigned guest_feature_select;
};
@@ -203,4 +210,52 @@ struct VirtIORngPCI {
/* Virtio ABI versio...
2013 May 28
3
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...+84,11 @@ struct VirtIOPCIProxy {
PCIDevice pci_dev;
VirtIODevice *vdev;
MemoryRegion bar;
+ MemoryRegion config_bar;
+ MemoryRegion config_common;
+ MemoryRegion config_isr;
+ MemoryRegion config_notify;
+ MemoryRegion config_device;
uint32_t flags;
uint32_t class_code;
uint32_t nvectors;
@@ -93,6 +98,8 @@ struct VirtIOPCIProxy {
VirtIOIRQFD *vector_irqfd;
int nvqs_with_notifiers;
VirtioBusState bus;
+ unsigned device_feature_select;
+ unsigned guest_feature_select;
};
@@ -203,4 +210,52 @@ struct VirtIORngPCI {
/* Virtio ABI versio...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...->config);
qemu_free(vdev->vq);
@@ -761,7 +874,8 @@ VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
uint16_t vendor, uint16_t device,
uint16_t subvendor, uint16_t subdevice,
uint16_t class_code, uint8_t pif,
- size_t config_size, size_t struct_size)
+ size_t config_size, size_t struct_size,
+ int nvectors)
{
VirtIODevice *vdev;
PCIDevice *pci_dev;
@@ -775,6 +889,7 @@ VirtIODevice *virtio_init...
2009 May 20
0
[PATCHv2-RFC 1/2] qemu-kvm: add MSI-X support
...->config);
qemu_free(vdev->vq);
@@ -761,7 +874,8 @@ VirtIODevice *virtio_init_pci(PCIBus *bus, const char *name,
uint16_t vendor, uint16_t device,
uint16_t subvendor, uint16_t subdevice,
uint16_t class_code, uint8_t pif,
- size_t config_size, size_t struct_size)
+ size_t config_size, size_t struct_size,
+ int nvectors)
{
VirtIODevice *vdev;
PCIDevice *pci_dev;
@@ -775,6 +889,7 @@ VirtIODevice *virtio_init...
2013 May 28
0
[PATCH RFC] virtio-pci: new config layout: using memory BAR
...ice pci_dev;
> VirtIODevice *vdev;
> MemoryRegion bar;
> + MemoryRegion config_bar;
> + MemoryRegion config_common;
> + MemoryRegion config_isr;
> + MemoryRegion config_notify;
> + MemoryRegion config_device;
> uint32_t flags;
> uint32_t class_code;
> uint32_t nvectors;
> @@ -93,6 +98,8 @@ struct VirtIOPCIProxy {
> VirtIOIRQFD *vector_irqfd;
> int nvqs_with_notifiers;
> VirtioBusState bus;
> + unsigned device_feature_select;
> + unsigned guest_feature_select;
> };
>
>
> @@ -203,4...
2012 Jan 24
2
[PATCH 26/28] pci: convert to QEMU Object Model
...= virtio_blk_exit_pci,
- .vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET,
- .device_id = PCI_DEVICE_ID_VIRTIO_BLOCK,
- .revision = VIRTIO_PCI_ABI_VERSION,
- .class_id = PCI_CLASS_STORAGE_SCSI,
- .qdev.props = (Property[]) {
- DEFINE_PROP_HEX32("class", VirtIOPCIProxy, class_code, 0),
- DEFINE_BLOCK_PROPERTIES(VirtIOPCIProxy, block),
- DEFINE_PROP_STRING("serial", VirtIOPCIProxy, block_serial),
- DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags, VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),
- DEFINE_PROP_UINT32("vectors&quo...
2014 Dec 02
0
[PATCH RFC v5 05/19] virtio: support more feature bits
...oxy = to_virtio_pci_proxy(d);
+
return proxy->host_features;
}
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 8873b6d..85f102d 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -91,7 +91,7 @@ struct VirtIOPCIProxy {
uint32_t flags;
uint32_t class_code;
uint32_t nvectors;
- uint32_t host_features;
+ uint64_t host_features;
bool ioeventfd_disabled;
bool ioeventfd_started;
VirtIOIRQFD *vector_irqfd;
diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c
index 473c044..edd39cc 100644
--- a/hw/virtio/virtio-rng.c
+++ b...
2014 Dec 02
0
[PATCH RFC v5 05/19] virtio: support more feature bits
...oxy = to_virtio_pci_proxy(d);
+
return proxy->host_features;
}
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 8873b6d..85f102d 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -91,7 +91,7 @@ struct VirtIOPCIProxy {
uint32_t flags;
uint32_t class_code;
uint32_t nvectors;
- uint32_t host_features;
+ uint64_t host_features;
bool ioeventfd_disabled;
bool ioeventfd_started;
VirtIOIRQFD *vector_irqfd;
diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c
index 473c044..edd39cc 100644
--- a/hw/virtio/virtio-rng.c
+++ b...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...uot;, vendor_id);
+ debug("found valid device, vendor_id = %x\n",
+ vendor_id);
++valid_device;
@@ -130,25 +133,30 @@ int ibmphp_configure_card (struct pci_func *func, u8 slotno)
pci_bus_read_config_dword (ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class);
class_code = class >> 24;
- debug ("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code);
+ debug("hrd_type = %x, class = %x, class_code %x\n",
+ hdr_type, class, class_code);
class >>= 8; /* to take revision out, class = class.subclass.prog...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...uot;, vendor_id);
+ debug("found valid device, vendor_id = %x\n",
+ vendor_id);
++valid_device;
@@ -130,25 +133,30 @@ int ibmphp_configure_card (struct pci_func *func, u8 slotno)
pci_bus_read_config_dword (ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class);
class_code = class >> 24;
- debug ("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code);
+ debug("hrd_type = %x, class = %x, class_code %x\n",
+ hdr_type, class, class_code);
class >>= 8; /* to take revision out, class = class.subclass.prog...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...uot;, vendor_id);
+ debug("found valid device, vendor_id = %x\n",
+ vendor_id);
++valid_device;
@@ -130,25 +133,30 @@ int ibmphp_configure_card (struct pci_func *func, u8 slotno)
pci_bus_read_config_dword (ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class);
class_code = class >> 24;
- debug ("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code);
+ debug("hrd_type = %x, class = %x, class_code %x\n",
+ hdr_type, class, class_code);
class >>= 8; /* to take revision out, class = class.subclass.prog...
2014 Dec 11
0
[PATCH RFC v6 05/20] virtio: support more feature bits
...oxy = to_virtio_pci_proxy(d);
+
return proxy->host_features;
}
diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
index 8873b6d..85f102d 100644
--- a/hw/virtio/virtio-pci.h
+++ b/hw/virtio/virtio-pci.h
@@ -91,7 +91,7 @@ struct VirtIOPCIProxy {
uint32_t flags;
uint32_t class_code;
uint32_t nvectors;
- uint32_t host_features;
+ uint64_t host_features;
bool ioeventfd_disabled;
bool ioeventfd_started;
VirtIOIRQFD *vector_irqfd;
diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c
index 473c044..edd39cc 100644
--- a/hw/virtio/virtio-rng.c
+++ b...