[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 0/1] Dump patches
From: |
Marc-Andre Lureau |
Subject: |
Re: [Qemu-devel] [PULL 0/1] Dump patches |
Date: |
Fri, 19 Jan 2018 17:08:57 +0100 |
Hi
On Fri, Jan 19, 2018 at 4:29 PM, Peter Maydell <address@hidden> wrote:
> On 19 January 2018 at 15:24, Peter Maydell <address@hidden> wrote:
>> On 19 January 2018 at 14:35, Marc-Andre Lureau <address@hidden> wrote:
>>> I have not found how to translate a python 'buffer' to a bytes string
>>> in 2.6.
>>
>> A local python expert suggests that "bytes(buffer)" should work.
>
> ...and that it ought to work if handed a memoryview too, so do we
> just want
>
> self.elf.add_vmcoreinfo_note(bytes(vmcoreinfo))
>
Yes, I tested on 2.6 and 3.6, it works. I'll send a new patch.
Thanks!
- [Qemu-devel] [PULL 0/1] Dump patches, Marc-André Lureau, 2018/01/17
- [Qemu-devel] [PULL 1/1] dump-guest-memory.py: fix python 2 support, Marc-André Lureau, 2018/01/17
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Eric Blake, 2018/01/17
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Peter Maydell, 2018/01/19
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Marc-Andre Lureau, 2018/01/19
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Eric Blake, 2018/01/19
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Peter Maydell, 2018/01/19
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Peter Maydell, 2018/01/19
- Re: [Qemu-devel] [PULL 0/1] Dump patches,
Marc-Andre Lureau <=
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Peter Maydell, 2018/01/19
- Re: [Qemu-devel] [PULL 0/1] Dump patches, Marc-Andre Lureau, 2018/01/19