diff options
| author | Gavin Shan <gshan@redhat.com> | 2023-05-09 12:21:21 +1000 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-05-18 08:53:50 +0200 |
| commit | 3794cb9485ca52a65494c6eb108ff280a7e98dbc (patch) | |
| tree | 22acdb5b50a8da8efa451ea9c4e41888f72d067f /hw/scsi/scsi-generic.c | |
| parent | b20cc776922dcf6d97f431a3460e868a9ac3e89e (diff) | |
| download | focaccia-qemu-3794cb9485ca52a65494c6eb108ff280a7e98dbc.tar.gz focaccia-qemu-3794cb9485ca52a65494c6eb108ff280a7e98dbc.zip | |
kvm: Add helper kvm_dirty_ring_init()
Due to multiple capabilities associated with the dirty ring for different
architectures: KVM_CAP_DIRTY_{LOG_RING, LOG_RING_ACQ_REL} for x86 and
arm64 separately. There will be more to be done in order to support the
dirty ring for arm64.
Lets add helper kvm_dirty_ring_init() to enable the dirty ring. With this,
the code looks a bit clean.
No functional change intended.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Tested-by: Zhenyu Zhang <zhenyzha@redhat.com>
Message-Id: <20230509022122.20888-4-gshan@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
0 files changed, 0 insertions, 0 deletions