On Sun, Aug 21, 2016 at 02:15:31PM +0200, Lluís Vilanova wrote:
> > Can this approach be made thread-safe?
>
> > If not then it would be good to consider the problem right away and
> > switch to something that is thread-safe, even if it depends on the
> > target architecture.
>
> Kind of. The eas
Stefan Hajnoczi writes:
> On Fri, Aug 05, 2016 at 06:59:39PM +0200, Lluís Vilanova wrote:
>> +static void init_channel(const char *base, const char *suffix, size_t size,
>> + char ** path, int *fd, uint64_t **addr)
>> +{
>> +*path = g_malloc(strlen(base) + strlen(suffix
On Fri, Aug 05, 2016 at 06:59:39PM +0200, Lluís Vilanova wrote:
> +static void init_channel(const char *base, const char *suffix, size_t size,
> + char ** path, int *fd, uint64_t **addr)
> +{
> +*path = g_malloc(strlen(base) + strlen(suffix) + 1);
> +sprintf(*path, "
Eric Blake writes:
> On 08/05/2016 10:59 AM, Lluís Vilanova wrote:
>> QEMU detects when the guest uses 'mmap' on hypertrace's control channel
>> file, and then uses 'mprotect' to detect accesses to it, which are used
>> to trigger traceing event "guest_hypertrace".
> s/traceing/tracing/
> I'll p
On 08/05/2016 10:59 AM, Lluís Vilanova wrote:
> QEMU detects when the guest uses 'mmap' on hypertrace's control channel
> file, and then uses 'mprotect' to detect accesses to it, which are used
> to trigger traceing event "guest_hypertrace".
s/traceing/tracing/
I'll probably leave the technical r
QEMU detects when the guest uses 'mmap' on hypertrace's control channel
file, and then uses 'mprotect' to detect accesses to it, which are used
to trigger traceing event "guest_hypertrace".
Signed-off-by: Lluís Vilanova
---
Makefile.objs|4 +
bsd-user/main.c | 16 +++