diff options
| author | Keqian Zhu <zhukeqian1@huawei.com> | 2020-12-17 09:49:41 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-06 11:41:54 +0100 |
| commit | 3920552846e881bafa9f9aad0bb1a6eef874d7fb (patch) | |
| tree | 3a4db98b6d2e568fbfb396ab426a66128e760265 /util/qemu-config.c | |
| parent | e0a8f99355c32b48c9ef867127075b5267ae23d8 (diff) | |
| download | focaccia-qemu-3920552846e881bafa9f9aad0bb1a6eef874d7fb.tar.gz focaccia-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 'util/qemu-config.c')
0 files changed, 0 insertions, 0 deletions