Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-30 Thread Blue Swirl
2011/9/30 Lluís Vilanova : > Blue Swirl writes: > >> 2011/9/29 Lluís Vilanova : >>> Blue Swirl writes: >>> 2011/9/29 Lluís Vilanova : > +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, > unsigned size) > +{ > +    State *s = opaque; > + > +    ui

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-30 Thread Lluís Vilanova
Blue Swirl writes: > 2011/9/29 Lluís Vilanova : >> Blue Swirl writes: >> >>> 2011/9/29 Lluís Vilanova : +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, unsigned size) +{ +    State *s = opaque; + +    uint64_t res = ldq_p(&s->size); +  

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-30 Thread Blue Swirl
On Thu, Sep 29, 2011 at 10:35 PM, Frans de Boer wrote: > On 09/29/2011 11:49 PM, Lluís Vilanova wrote: >> >> Blue Swirl writes: >> >>> 2011/9/29 Lluís Vilanova: +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, unsigned size) +{ +    State *s = opaque

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-30 Thread Blue Swirl
2011/9/29 Lluís Vilanova : > Blue Swirl writes: > >> 2011/9/29 Lluís Vilanova : >>> +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, >>> unsigned size) >>> +{ >>> +    State *s = opaque; >>> + >>> +    uint64_t res = ldq_p(&s->size); >>> +    uint8_t *resb = (uint8_t*)&res;

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-29 Thread Frans de Boer
On 09/29/2011 11:49 PM, Lluís Vilanova wrote: Blue Swirl writes: 2011/9/29 Lluís Vilanova: +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, unsigned size) +{ +State *s = opaque; + +uint64_t res = ldq_p(&s->size); +uint8_t *resb = (uint8_t*)&res; +return

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-29 Thread Frans de Boer
On 09/29/2011 11:49 PM, Lluís Vilanova wrote: Blue Swirl writes: 2011/9/29 Lluís Vilanova: +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, unsigned size) +{ +State *s = opaque; + +uint64_t res = ldq_p(&s->size); +uint8_t *resb = (uint8_t*)&res; +return

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-29 Thread Lluís Vilanova
Blue Swirl writes: > 2011/9/29 Lluís Vilanova : >> +static uint64_t control_io_read(void *opaque, target_phys_addr_t addr, >> unsigned size) >> +{ >> +    State *s = opaque; >> + >> +    uint64_t res = ldq_p(&s->size); >> +    uint8_t *resb = (uint8_t*)&res; >> +    return resb[addr % CTRL_BYTES]

Re: [Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-29 Thread Blue Swirl
2011/9/29 Lluís Vilanova : > Uses a virtual device to proxy uses of the backdoor communication channel to > the > user-provided code. > > Signed-off-by: Lluís Vilanova > --- >  Makefile.objs           |    1 >  backdoor/qemu/softmmu.c |  124 > +++ >  h

[Qemu-devel] [PATCH 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a"

2011-09-29 Thread Lluís Vilanova
Uses a virtual device to proxy uses of the backdoor communication channel to the user-provided code. Signed-off-by: Lluís Vilanova --- Makefile.objs |1 backdoor/qemu/softmmu.c | 124 +++ hw/pci.h|1 3 files changed