* [PATCH] virtio_blk: fix endianess annotations
@ 2008-05-29 9:10 Christian Borntraeger
2008-05-30 3:18 ` Rusty Russell
0 siblings, 1 reply; 2+ messages in thread
From: Christian Borntraeger @ 2008-05-29 9:10 UTC (permalink / raw)
To: Rusty Russell; +Cc: kvm, virtualization
Since commit 72e61eb40b55dd57031ec5971e810649f82b0259 (virtio: change config
to guest endian) config space is no longer fixed endian.
Lets change the virtio_blk_config variables.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
include/linux/virtio_blk.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: kvm/include/linux/virtio_blk.h
===================================================================
--- kvm.orig/include/linux/virtio_blk.h
+++ kvm/include/linux/virtio_blk.h
@@ -16,14 +16,14 @@
struct virtio_blk_config
{
/* The capacity (in 512-byte sectors). */
- __le64 capacity;
+ __u64 capacity;
/* The maximum segment size (if VIRTIO_BLK_F_SIZE_MAX) */
- __le32 size_max;
+ __u32 size_max;
/* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */
- __le32 seg_max;
+ __u32 seg_max;
/* geometry the device (if VIRTIO_BLK_F_GEOMETRY) */
struct virtio_blk_geometry {
- __le16 cylinders;
+ __u16 cylinders;
__u8 heads;
__u8 sectors;
} geometry;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] virtio_blk: fix endianess annotations
2008-05-29 9:10 [PATCH] virtio_blk: fix endianess annotations Christian Borntraeger
@ 2008-05-30 3:18 ` Rusty Russell
0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2008-05-30 3:18 UTC (permalink / raw)
To: Christian Borntraeger; +Cc: kvm, virtualization
On Thursday 29 May 2008 19:10:01 Christian Borntraeger wrote:
> Since commit 72e61eb40b55dd57031ec5971e810649f82b0259 (virtio: change
> config to guest endian) config space is no longer fixed endian.
>
> Lets change the virtio_blk_config variables.
Applied, thanks,
Rusty.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-30 3:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 9:10 [PATCH] virtio_blk: fix endianess annotations Christian Borntraeger
2008-05-30 3:18 ` Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox