From 333629682af2af797ca57f68a77c6e9faaf51f41 Mon Sep 17 00:00:00 2001 From: Zhu Yingjiang Date: Wed, 22 Aug 2018 14:37:15 +0800 Subject: [PATCH] change the vq count and vendor id Signed-off-by: Zhu Yingjiang Tracked-On: #1915 Acked-by: Yu Wang --- devicemodel/hw/pci/virtio/virtio_audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devicemodel/hw/pci/virtio/virtio_audio.c b/devicemodel/hw/pci/virtio/virtio_audio.c index 42a8df134..1fb5b9c4a 100644 --- a/devicemodel/hw/pci/virtio/virtio_audio.c +++ b/devicemodel/hw/pci/virtio/virtio_audio.c @@ -40,7 +40,7 @@ * Queue definitions. * Audio mediator uses two queues: one for interrupt and the other for messages. */ -#define VIRTIO_AUDIO_VQ_NUM 2 +#define VIRTIO_AUDIO_VQ_NUM 4 /*2 currently we use 4 vq, may change later*/ const char *vbs_k_audio_dev_path = "/dev/vbs_k_audio"; @@ -334,11 +334,11 @@ virtio_audio_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts) /* initialize config space */ pci_set_cfgdata16(dev, PCIR_DEVICE, VIRTIO_DEV_AUDIO); - pci_set_cfgdata16(dev, PCIR_VENDOR, VIRTIO_VENDOR); + pci_set_cfgdata16(dev, PCIR_VENDOR, INTEL_VENDOR_ID); pci_set_cfgdata8(dev, PCIR_CLASS, PCIC_MULTIMEDIA); pci_set_cfgdata8(dev, PCIR_SUBCLASS, PCIS_MULTIMEDIA_AUDIO); pci_set_cfgdata16(dev, PCIR_SUBDEV_0, VIRTIO_TYPE_AUDIO); - pci_set_cfgdata16(dev, PCIR_SUBVEND_0, VIRTIO_VENDOR); + pci_set_cfgdata16(dev, PCIR_SUBVEND_0, INTEL_VENDOR_ID); if (virtio_interrupt_init(&virt_audio->base, virtio_uses_msix())) { free(virt_audio);