Skip to content

Commit ecee0df

Browse files
russell-islamjinankjain
authored andcommitted
mshv-ioctls: update MSHV_GET_HOST_PARTITION_PROPERTY
Update MSHV_GET_HOST_PARTITION_PROPERTY IOCTL definition to allow Kernel to read/write the argument. Signed-off-by: Muminul Islam <muislam@microsoft.com>
1 parent 62dddfd commit ecee0df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mshv-ioctls/src/mshv_ioctls.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ ioctl_iow_nr!(
1313
0x00,
1414
mshv_create_partition
1515
);
16-
ioctl_ior_nr!(MSHV_GET_HOST_PARTITION_PROPERTY, MSHV_IOCTL, 0x01, u64);
16+
ioctl_iowr_nr!(
17+
MSHV_GET_HOST_PARTITION_PROPERTY,
18+
MSHV_IOCTL,
19+
0x01,
20+
mshv_partition_property
21+
);
1722

1823
// partition fd
1924
ioctl_io_nr!(MSHV_INITIALIZE_PARTITION, MSHV_IOCTL, 0x00);

0 commit comments

Comments
 (0)