qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qmp: extend QMP to provide read/write access to


From: Bryan D. Payne
Subject: Re: [Qemu-devel] [PATCH] qmp: extend QMP to provide read/write access to physical memory
Date: Wed, 3 Dec 2014 19:37:40 -0800

Out of curiosity, what are existing solutions?

Basically just attaching gdb and pulling memory out manually (or writing a program to do the same).
 

> +struct request {
> +    uint8_t type;      /* 0 quit, 1 read, 2 write, ... rest reserved */
> +    uint64_t address;  /* address to read from OR write to */
> +    uint64_t length;   /* number of bytes to read OR write */
> +};

Please add QEMU_PACKED to this structure, and probably name it QEMUMARequest,
for name collision avoidance and CamelCase convension.

How critical is QEMU_PACKED?  This changes the layout of the struct which means that existing clients (LibVMI) would need to change their code as well.

-bryan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]