Created
October 14, 2015 07:22
-
-
Save bkrepo/641d0dc118191a378273 to your computer and use it in GitHub Desktop.
Xen blkif.h patch for arm32 architecture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/xen/interface/io/blkif.h b/include/xen/interface/io/blkif.h | |
index c33e1c4..075a251 100644 | |
--- a/include/xen/interface/io/blkif.h | |
+++ b/include/xen/interface/io/blkif.h | |
@@ -145,7 +145,7 @@ struct blkif_request_segment { | |
struct blkif_request_rw { | |
uint8_t nr_segments; /* number of segments */ | |
blkif_vdev_t handle; /* only for read/write requests */ | |
-#ifndef CONFIG_X86_32 | |
+#if !defined(CONFIG_X86_32) && !defined(CONFIG_ARM) | |
uint32_t _pad1; /* offsetof(blkif_request,u.rw.id) == 8 */ | |
#endif | |
uint64_t id; /* private guest value, echoed in resp */ | |
@@ -157,7 +157,7 @@ struct blkif_request_discard { | |
uint8_t flag; /* BLKIF_DISCARD_SECURE or zero. */ | |
#define BLKIF_DISCARD_SECURE (1<<0) /* ignored if discard-secure=0 */ | |
blkif_vdev_t _pad1; /* only for read/write requests */ | |
-#ifndef CONFIG_X86_32 | |
+#if !defined(CONFIG_X86_32) && !defined(CONFIG_ARM) | |
uint32_t _pad2; /* offsetof(blkif_req..,u.discard.id)==8*/ | |
#endif | |
uint64_t id; /* private guest value, echoed in resp */ | |
@@ -169,7 +169,7 @@ struct blkif_request_discard { | |
struct blkif_request_other { | |
uint8_t _pad1; | |
blkif_vdev_t _pad2; /* only for read/write requests */ | |
-#ifndef CONFIG_X86_32 | |
+#if !defined(CONFIG_X86_32) && !defined(CONFIG_ARM) | |
uint32_t _pad3; /* offsetof(blkif_req..,u.other.id)==8*/ | |
#endif | |
uint64_t id; /* private guest value, echoed in resp */ | |
@@ -178,7 +178,7 @@ struct blkif_request_other { | |
struct blkif_request_indirect { | |
uint8_t indirect_op; | |
uint16_t nr_segments; | |
-#ifndef CONFIG_X86_32 | |
+#if !defined(CONFIG_X86_32) && !defined(CONFIG_ARM) | |
uint32_t _pad1; /* offsetof(blkif_...,u.indirect.id) == 8 */ | |
#endif | |
uint64_t id; | |
@@ -186,7 +186,7 @@ struct blkif_request_indirect { | |
blkif_vdev_t handle; | |
uint16_t _pad2; | |
grant_ref_t indirect_grefs[BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST]; | |
-#ifndef CONFIG_X86_32 | |
+#if !defined(CONFIG_X86_32) && !defined(CONFIG_ARM) | |
uint32_t _pad3; /* make it 64 byte aligned */ | |
#else | |
uint64_t _pad3; /* make it 64 byte aligned */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment