mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-27 08:56:00 +00:00
kvm tools: Fix virtio rng build breakage
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
53eca08245
commit
c9ad1e3c72
+2
-2
@@ -128,7 +128,7 @@ static bool virtio_rng_pci_io_out(struct kvm *kvm, uint16_t port, void *data, in
|
||||
vring_init(&queue->vring, VIRTIO_RNG_QUEUE_SIZE, p, 4096);
|
||||
|
||||
rng_device.jobs[rng_device.queue_selector] =
|
||||
thread_pool__add_jobtype(kvm, virtio_rng_do_io, queue);
|
||||
thread_pool__add_job(kvm, virtio_rng_do_io, queue);
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -138,7 +138,7 @@ static bool virtio_rng_pci_io_out(struct kvm *kvm, uint16_t port, void *data, in
|
||||
case VIRTIO_PCI_QUEUE_NOTIFY: {
|
||||
uint16_t queue_index;
|
||||
queue_index = ioport__read16(data);
|
||||
thread_pool__signal_work(rng_device.jobs[queue_index]);
|
||||
thread_pool__do_job(rng_device.jobs[queue_index]);
|
||||
break;
|
||||
}
|
||||
case VIRTIO_PCI_STATUS:
|
||||
|
||||
Reference in New Issue
Block a user