]> xenbits.xensource.com Git - libvirt.git/commit
domain_validate: Validate VIRTIO_PMEM address alignment
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 22 Sep 2023 08:07:28 +0000 (10:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 22 Sep 2023 14:37:10 +0000 (16:37 +0200)
commitd54b70a7e409b876e3ed896f5cd043b7e6f1ae03
treeeda79ff5d7a66ca8c0b45bbdc75443ab555d20d7
parent1839c5c46eabbd85992d1bc90950bda9b1a64d62
domain_validate: Validate VIRTIO_PMEM address alignment

QEMU mandates the VIRTIO_PMEM address is aligned to a pagesize.
This is a very reasonable requirement. So much so, that it
deserves to be in hypervisor agnostic validation code
(virDomainMemoryDefValidate()). Not that any other hypervisor
would support VIRTIO_PMEM yet. But even if they did, this would
surely be still valid.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_validate.c