aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/host-stub.c
diff options
context:
space:
mode:
authorKeqian Zhu <zhukeqian1@huawei.com>2020-12-17 09:49:41 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2021-03-06 11:41:54 +0100
commit3920552846e881bafa9f9aad0bb1a6eef874d7fb (patch)
tree3a4db98b6d2e568fbfb396ab426a66128e760265 /hw/usb/host-stub.c
parente0a8f99355c32b48c9ef867127075b5267ae23d8 (diff)
downloadqemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.zip
qemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.tar.gz
qemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.tar.bz2
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/usb/host-stub.c')
0 files changed, 0 insertions, 0 deletions