mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
virtio,vhost,pci,pc: features, fixes and cleanups
- new stats in virtio balloon - virtio eventfd rework for boot speedup - vhost memory rework for boot speedup - fixes and cleanups all over the place Signed-off-by: Michael S. Tsirkin <mst@redhat.com> -----BEGIN PGP SIGNATURE----- iQEcBAABAgAGBQJagxKDAAoJECgfDbjSjVRp5qAH/3gmgBaIzL3KRHd5i0RZifJv PvyAVYgZd7h0+/1r9GM7guHKyEPZ08JtbHSm/HuDV4BD/Vf3/8joy8roExIfde2A 6k8fd6ANVQmE3t5zUxNXi9qiG4pO4xDIu4cMAbixzgN9x5ttlcfTw7fTT0e0VJxJ 8SN02/uCPPR/DY4/cpjah+slSyv6rBKT1v1ONy7djyRTYHi6h3Meoh05YfEALkwA goxTKBZHi0L1IZ3HP/ZpXJDohQ5n2P09DX0fQgb8PgmW6WIWB/Qpi5pD53LZpMCV n9waTF0U0ahneFd2FHo22QMMrwWvQyrjv+w5uXVr+qmHb/OyH2tUt7PgGF9+QKA= =78s5 -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging virtio,vhost,pci,pc: features, fixes and cleanups - new stats in virtio balloon - virtio eventfd rework for boot speedup - vhost memory rework for boot speedup - fixes and cleanups all over the place Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Tue 13 Feb 2018 16:29:55 GMT # gpg: using RSA key 281F0DB8D28D5469 # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" # gpg: aka "Michael S. Tsirkin <mst@redhat.com>" # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17 0970 C350 3912 AFBE 8E67 # Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA 8A0D 281F 0DB8 D28D 5469 * remotes/mst/tags/for_upstream: (22 commits) virtio-balloon: include statistics of disk/file caches acpi-test: update FADT lpc: drop pcie host dependency tests: acpi: fix FADT not being compared to reference table hw/pci-bridge: fix pcie root port's IO hints capability libvhost-user: Support across-memory-boundary access libvhost-user: Fix resource leak virtio-balloon: unref the memory region before continuing pci: removed the is_express field since a uniform interface was inserted virtio-blk: enable multiple vectors when using multiple I/O queues pci/bus: let it has higher migration priority pci-bridge/i82801b11: clear bridge registers on platform reset vhost: Move log_dirty check vhost: Merge and delete unused callbacks vhost: Clean out old vhost_set_memory and friends vhost: Regenerate region list from changed sections list vhost: Merge sections added to temporary list vhost: Simplify ring verification checks vhost: Build temporary section list and deref after commit virtio: improve virtio devices initialization time ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
b734ed9de1
39 changed files with 475 additions and 400 deletions
|
@ -2447,7 +2447,6 @@ typedef struct MegasasInfo {
|
|||
uint16_t subsystem_id;
|
||||
int ioport_bar;
|
||||
int mmio_bar;
|
||||
bool is_express;
|
||||
int osts;
|
||||
const VMStateDescription *vmsd;
|
||||
Property *props;
|
||||
|
@ -2465,7 +2464,6 @@ static struct MegasasInfo megasas_devices[] = {
|
|||
.ioport_bar = 2,
|
||||
.mmio_bar = 0,
|
||||
.osts = MFI_1078_RM | 1,
|
||||
.is_express = false,
|
||||
.vmsd = &vmstate_megasas_gen1,
|
||||
.props = megasas_properties_gen1,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
|
@ -2482,7 +2480,6 @@ static struct MegasasInfo megasas_devices[] = {
|
|||
.ioport_bar = 0,
|
||||
.mmio_bar = 1,
|
||||
.osts = MFI_GEN2_RM,
|
||||
.is_express = true,
|
||||
.vmsd = &vmstate_megasas_gen2,
|
||||
.props = megasas_properties_gen2,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
|
@ -2506,7 +2503,6 @@ static void megasas_class_init(ObjectClass *oc, void *data)
|
|||
pc->subsystem_vendor_id = PCI_VENDOR_ID_LSI_LOGIC;
|
||||
pc->subsystem_id = info->subsystem_id;
|
||||
pc->class_id = PCI_CLASS_STORAGE_RAID;
|
||||
pc->is_express = info->is_express;
|
||||
e->mmio_bar = info->mmio_bar;
|
||||
e->ioport_bar = info->ioport_bar;
|
||||
e->osts = info->osts;
|
||||
|
|
|
@ -175,6 +175,7 @@ fail_vrings:
|
|||
aio_context_release(s->ctx);
|
||||
for (i = 0; i < vs->conf.num_queues + 2; i++) {
|
||||
virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), i, false);
|
||||
virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), i);
|
||||
}
|
||||
k->set_guest_notifiers(qbus->parent, vs->conf.num_queues + 2, false);
|
||||
fail_guest_notifiers:
|
||||
|
@ -213,6 +214,7 @@ void virtio_scsi_dataplane_stop(VirtIODevice *vdev)
|
|||
|
||||
for (i = 0; i < vs->conf.num_queues + 2; i++) {
|
||||
virtio_bus_set_host_notifier(VIRTIO_BUS(qbus), i, false);
|
||||
virtio_bus_cleanup_host_notifier(VIRTIO_BUS(qbus), i);
|
||||
}
|
||||
|
||||
/* Clean up guest notifier (irq) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue