diff mbox series

[kvmtool,3/4] virtio/mmio: remove unneeded virtio_mmio_hdr members

Message ID 20220601165138.3135246-4-andre.przywara@arm.com (mailing list archive)
State New, archived
Headers show
Series Fix some undefined behaviour | expand

Commit Message

Andre Przywara June 1, 2022, 4:51 p.m. UTC
So far "struct virtio_mmio_hdr" was modelled exactly like the virtio
MMIO protocol header, including reserved fields and members unused by
kvmtool.
Since we now no longer need to stay byte-for-byte compatible, drop those
members to clean up the code.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 include/kvm/virtio-mmio.h | 8 --------
 1 file changed, 8 deletions(-)
diff mbox series

Patch

diff --git a/include/kvm/virtio-mmio.h b/include/kvm/virtio-mmio.h
index aa4cab3c..84848eee 100644
--- a/include/kvm/virtio-mmio.h
+++ b/include/kvm/virtio-mmio.h
@@ -22,22 +22,14 @@  struct virtio_mmio_hdr {
 	u32	vendor_id;
 	u32	host_features;
 	u32	host_features_sel;
-	u32	reserved_1[2];
 	u32	guest_features;
 	u32	guest_features_sel;
 	u32	guest_page_size;
-	u32	reserved_2;
 	u32	queue_sel;
 	u32	queue_num_max;
 	u32	queue_num;
 	u32	queue_align;
-	u32	queue_pfn;
-	u32	reserved_3[3];
-	u32	queue_notify;
-	u32	reserved_4[3];
 	u32	interrupt_state;
-	u32	interrupt_ack;
-	u32	reserved_5[2];
 	u32	status;
 };