summaryrefslogtreecommitdiffstats
path: root/hw/scsi
diff options
context:
space:
mode:
authorKeqian Zhu2020-12-17 02:49:41 +0100
committerPaolo Bonzini2021-03-06 11:41:54 +0100
commit3920552846e881bafa9f9aad0bb1a6eef874d7fb (patch)
tree3a4db98b6d2e568fbfb396ab426a66128e760265 /hw/scsi
parentaccel: kvm: Fix memory waste under mismatch page size (diff)
downloadqemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.tar.gz
qemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.tar.xz
qemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.zip
accel: kvm: Add aligment assert for kvm_log_clear_one_slot
The parameters start and size are transfered from QEMU memory emulation layer. It can promise that they are TARGET_PAGE_SIZE aligned. However, KVM needs they are qemu_real_page_size aligned. Though no caller breaks this aligned requirement currently, we'd better add an explicit assert to avoid future breaking. Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> Acked-by: Peter Xu <peterx@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Message-Id: <20201217014941.22872-3-zhukeqian1@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi')
0 files changed, 0 insertions, 0 deletions