search for: lexxx

Displaying 16 results from an estimated 16 matches for "lexxx".

2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
Hi, > > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > > virtio_cread will do byteswaps differently without VERSION_1. > > > > Just don't go there. > So to clarify, you dislike using __virtio32 in virtio input header? Well, as I understand things __virtio32 implies byte...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
...nt explaining what the function does, > > and maybe wrap it in a helper like virtio_input_bitmap_copy or > > virtio_bitmap_or. > > Can do that, sure. Well, the function where this is in already cares about the bitmap copy only. Can add a comment though. > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > virtio_cread will do byteswaps differently without VERSION_1. > > Just don't go there. > > Changed that for v2, for the config space structs. They have normal u32 > in there now. virtio_cread() wants it this way. I liked...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
Hi, > > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > > virtio_cread will do byteswaps differently without VERSION_1. > > > > Just don't go there. > So to clarify, you dislike using __virtio32 in virtio input header? Well, as I understand things __virtio32 implies byte...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
...nt explaining what the function does, > > and maybe wrap it in a helper like virtio_input_bitmap_copy or > > virtio_bitmap_or. > > Can do that, sure. Well, the function where this is in already cares about the bitmap copy only. Can add a comment though. > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > virtio_cread will do byteswaps differently without VERSION_1. > > Just don't go there. > > Changed that for v2, for the config space structs. They have normal u32 > in there now. virtio_cread() wants it this way. I liked...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
On Mo, 2015-03-23 at 15:54 +0100, Michael S. Tsirkin wrote: > On Mon, Mar 23, 2015 at 03:27:35PM +0100, Gerd Hoffmann wrote: > > Hi, > > > > > > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > > > > virtio_cread will do byteswaps differently without VERSION_1. > > > > > > Just don't go there. > > > > > So to clarify, you dislike using __virtio32 in virtio input header? > > &g...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
On Mo, 2015-03-23 at 15:54 +0100, Michael S. Tsirkin wrote: > On Mon, Mar 23, 2015 at 03:27:35PM +0100, Gerd Hoffmann wrote: > > Hi, > > > > > > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > > > > virtio_cread will do byteswaps differently without VERSION_1. > > > > > > Just don't go there. > > > > > So to clarify, you dislike using __virtio32 in virtio input header? > > &g...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...think this is needed. There isn't a hard dependency on virtio > 1.0. It's just that config space is relatively large and because of > that I want it be 1.0 on the host (qemu) side to not allocate large > portions of I/O address space for the legacy virtio pci bar. You are doing leXXX everywhere, that's VERSION_1 dependency. virtio_cread will do byteswaps differently without VERSION_1. Just don't go there. > > > + vi->idev->name = vi->name; > > > + vi->idev->phys = vi->phys; > > > + vi->idev->id.bustype = BUS_VIRTUAL; &...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...think this is needed. There isn't a hard dependency on virtio > 1.0. It's just that config space is relatively large and because of > that I want it be 1.0 on the host (qemu) side to not allocate large > portions of I/O address space for the legacy virtio pci bar. You are doing leXXX everywhere, that's VERSION_1 dependency. virtio_cread will do byteswaps differently without VERSION_1. Just don't go there. > > > + vi->idev->name = vi->name; > > > + vi->idev->phys = vi->phys; > > > + vi->idev->id.bustype = BUS_VIRTUAL; &...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...> In any case I'll fix it up. > > I see you still didn't in v2? v2 builds fine without sparse warnings. virtio_cread handles swapping if needed and returns native endian, so I have to store this in normal u32 variables and pass it on to the input layer as-is. > You are doing leXXX everywhere, that's VERSION_1 dependency. > virtio_cread will do byteswaps differently without VERSION_1. > Just don't go there. Changed that for v2, for the config space structs. They have normal u32 in there now. virtio_cread() wants it this way. cheers, Gerd
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...like virtio_input_bitmap_copy or > > > virtio_bitmap_or. > > > > Can do that, sure. > > Well, the function where this is in already cares about the bitmap copy > only. Can add a comment though. OK, I think that will be enough for now. > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > virtio_cread will do byteswaps differently without VERSION_1. > > > Just don't go there. > > > > Changed that for v2, for the config space structs. They have normal u32 > > in there now. virtio_cread() wan...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
On Mon, Mar 23, 2015 at 03:27:35PM +0100, Gerd Hoffmann wrote: > Hi, > > > > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > > > virtio_cread will do byteswaps differently without VERSION_1. > > > > > Just don't go there. > > > So to clarify, you dislike using __virtio32 in virtio input header? > > Well, as I understand...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...> In any case I'll fix it up. > > I see you still didn't in v2? v2 builds fine without sparse warnings. virtio_cread handles swapping if needed and returns native endian, so I have to store this in normal u32 variables and pass it on to the input layer as-is. > You are doing leXXX everywhere, that's VERSION_1 dependency. > virtio_cread will do byteswaps differently without VERSION_1. > Just don't go there. Changed that for v2, for the config space structs. They have normal u32 in there now. virtio_cread() wants it this way. cheers, Gerd
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...like virtio_input_bitmap_copy or > > > virtio_bitmap_or. > > > > Can do that, sure. > > Well, the function where this is in already cares about the bitmap copy > only. Can add a comment though. OK, I think that will be enough for now. > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > virtio_cread will do byteswaps differently without VERSION_1. > > > Just don't go there. > > > > Changed that for v2, for the config space structs. They have normal u32 > > in there now. virtio_cread() wan...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
On Mon, Mar 23, 2015 at 03:27:35PM +0100, Gerd Hoffmann wrote: > Hi, > > > > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > > > > virtio_cread will do byteswaps differently without VERSION_1. > > > > > Just don't go there. > > > So to clarify, you dislike using __virtio32 in virtio input header? > > Well, as I understand...
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
On Thu, Mar 19, 2015 at 10:13:11AM +0100, Gerd Hoffmann wrote: > virtio-input is basically evdev-events-over-virtio, so this driver isn't > much more than reading configuration from config space and forwarding > incoming events to the linux input layer. > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> What worries me is how well are these events specified. Will we
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
On Thu, Mar 19, 2015 at 10:13:11AM +0100, Gerd Hoffmann wrote: > virtio-input is basically evdev-events-over-virtio, so this driver isn't > much more than reading configuration from config space and forwarding > incoming events to the linux input layer. > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> What worries me is how well are these events specified. Will we