mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxendevicemodel: initialise extent.pad to zero
The pad field needs to be zero as required by the hypervisor. Instead of setting the pad separately, use C99 initialiser. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
This commit is contained in:
1 parent
1c2ea5ee05
commit
71b7b4e0f5
1 file changed
+4
-4
@@ -483,10 +483,10 @@ int xendevicemodel_modified_memory(
|
||||
xendevicemodel_handle *dmod, domid_t domid, uint64_t first_pfn,
|
||||
uint32_t nr)
|
||||
{
|
||||
struct xen_dm_op_modified_memory_extent extent;
|
||||
|
||||
extent.first_pfn = first_pfn;
|
||||
extent.nr = nr;
|
||||
struct xen_dm_op_modified_memory_extent extent = {
|
||||
.first_pfn = first_pfn,
|
||||
.nr = nr,
|
||||
};
|
||||
|
||||
return xendevicemodel_modified_memory_bulk(dmod, domid, &extent, 1);
|
||||
}
|
||||
|
||||