Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-06-13 Thread Paolo Bonzini
On 13/06/19 07:07, Alexey Kardashevskiy wrote: > +if (as == &address_space_memory) { > +system_as = true; > +} > } Ah no, wait... On x86, there are two KVM address spaces, so you have to pass "as" to has_memory. To detect KVM address spaces, you can allocate an ar

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-06-13 Thread Paolo Bonzini
On 13/06/19 07:07, Alexey Kardashevskiy wrote: > > > On 21/05/2019 16:37, Alexey Kardashevskiy wrote: >> Ping, anyone? I still enjoy seeing "kvm" next to MRs in "info mtree -f" >> in my local QEMU :) > > > "Still feeling it" :) > Ping? Queued for persistence. :) Paolo > >> >> >> On 24/04/20

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-06-13 Thread Dr. David Alan Gilbert
* Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > > > On 21/05/2019 16:37, Alexey Kardashevskiy wrote: > > Ping, anyone? I still enjoy seeing "kvm" next to MRs in "info mtree -f" > > in my local QEMU :) > > > "Still feeling it" :) > Ping? Fundamentally you've got to convince Paolo that it's the

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-06-12 Thread Alexey Kardashevskiy
On 21/05/2019 16:37, Alexey Kardashevskiy wrote: > Ping, anyone? I still enjoy seeing "kvm" next to MRs in "info mtree -f" > in my local QEMU :) "Still feeling it" :) Ping? > > > On 24/04/2019 15:32, Alexey Kardashevskiy wrote: >> Paolo, ping? >> >> >> On 19/03/2019 18:05, Alexey Kardashev

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-05-21 Thread Alexey Kardashevskiy
Ping, anyone? I still enjoy seeing "kvm" next to MRs in "info mtree -f" in my local QEMU :) On 24/04/2019 15:32, Alexey Kardashevskiy wrote: > Paolo, ping? > > > On 19/03/2019 18:05, Alexey Kardashevskiy wrote: >> >> >> On 11/02/2019 15:56, Alexey Kardashevskiy wrote: >>> >>> >>> On 09/02/2019

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-04-23 Thread Alexey Kardashevskiy
Paolo, ping? On 19/03/2019 18:05, Alexey Kardashevskiy wrote: > > > On 11/02/2019 15:56, Alexey Kardashevskiy wrote: >> >> >> On 09/02/2019 04:26, Paolo Bonzini wrote: >>> On 07/02/19 12:49, Dr. David Alan Gilbert wrote: //#define DEBUG_UNASSIGNED @@ -2924,6 +2926,8 @@ struct FlatVie

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-03-19 Thread Alexey Kardashevskiy
On 11/02/2019 15:56, Alexey Kardashevskiy wrote: > > > On 09/02/2019 04:26, Paolo Bonzini wrote: >> On 07/02/19 12:49, Dr. David Alan Gilbert wrote: >>> //#define DEBUG_UNASSIGNED >>> @@ -2924,6 +2926,8 @@ struct FlatViewInfo { >>> int counter; >>> bool dispatch_tree; >>> bool

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-02-10 Thread Alexey Kardashevskiy
On 09/02/2019 04:26, Paolo Bonzini wrote: > On 07/02/19 12:49, Dr. David Alan Gilbert wrote: >> //#define DEBUG_UNASSIGNED >> @@ -2924,6 +2926,8 @@ struct FlatViewInfo { >> int counter; >> bool dispatch_tree; >> bool owner; >> +AccelClass *ac; >> +const char *ac_name; >>

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-02-08 Thread Paolo Bonzini
On 07/02/19 12:49, Dr. David Alan Gilbert wrote: > //#define DEBUG_UNASSIGNED > @@ -2924,6 +2926,8 @@ struct FlatViewInfo { > int counter; > bool dispatch_tree; > bool owner; > +AccelClass *ac; > +const char *ac_name; > }; > > static void mtree_print_flatview(gpointer ke

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-02-07 Thread Dr. David Alan Gilbert
* Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > > > On 04/01/2019 04:37, Dr. David Alan Gilbert wrote: > > * Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > >> > >> > >> On 17/12/2018 23:47, Philippe Mathieu-Daudé wrote: > >>> On 12/17/18 2:27 AM, Alexey Kardashevskiy wrote: > On 14/12/2018

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-02-06 Thread Alexey Kardashevskiy
On 29/01/2019 13:30, Alexey Kardashevskiy wrote: > > > On 14/01/2019 12:43, Alexey Kardashevskiy wrote: >> >> >> On 04/01/2019 04:37, Dr. David Alan Gilbert wrote: >>> * Alexey Kardashevskiy (a...@ozlabs.ru) wrote: On 17/12/2018 23:47, Philippe Mathieu-Daudé wrote: > On 12/1

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-01-28 Thread Alexey Kardashevskiy
On 14/01/2019 12:43, Alexey Kardashevskiy wrote: > > > On 04/01/2019 04:37, Dr. David Alan Gilbert wrote: >> * Alexey Kardashevskiy (a...@ozlabs.ru) wrote: >>> >>> >>> On 17/12/2018 23:47, Philippe Mathieu-Daudé wrote: On 12/17/18 2:27 AM, Alexey Kardashevskiy wrote: > On 14/12/2018 2

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-01-13 Thread Alexey Kardashevskiy
On 04/01/2019 04:37, Dr. David Alan Gilbert wrote: > * Alexey Kardashevskiy (a...@ozlabs.ru) wrote: >> >> >> On 17/12/2018 23:47, Philippe Mathieu-Daudé wrote: >>> On 12/17/18 2:27 AM, Alexey Kardashevskiy wrote: On 14/12/2018 22:07, Philippe Mathieu-Daudé wrote: > Hi Alexey, >

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2019-01-03 Thread Dr. David Alan Gilbert
* Alexey Kardashevskiy (a...@ozlabs.ru) wrote: > > > On 17/12/2018 23:47, Philippe Mathieu-Daudé wrote: > > On 12/17/18 2:27 AM, Alexey Kardashevskiy wrote: > >> On 14/12/2018 22:07, Philippe Mathieu-Daudé wrote: > >>> Hi Alexey, > >>> > >>> On 12/14/18 3:58 AM, Alexey Kardashevskiy wrote: >

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2018-12-17 Thread Alexey Kardashevskiy
On 17/12/2018 23:47, Philippe Mathieu-Daudé wrote: > On 12/17/18 2:27 AM, Alexey Kardashevskiy wrote: >> On 14/12/2018 22:07, Philippe Mathieu-Daudé wrote: >>> Hi Alexey, >>> >>> On 12/14/18 3:58 AM, Alexey Kardashevskiy wrote: This adds an accelerator name to the "into mtree -f" to tell th

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2018-12-17 Thread Philippe Mathieu-Daudé
On 12/17/18 2:27 AM, Alexey Kardashevskiy wrote: > On 14/12/2018 22:07, Philippe Mathieu-Daudé wrote: >> Hi Alexey, >> >> On 12/14/18 3:58 AM, Alexey Kardashevskiy wrote: >>> This adds an accelerator name to the "into mtree -f" to tell the user if >>> a particular memory section is registered with

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2018-12-16 Thread Alexey Kardashevskiy
On 14/12/2018 22:07, Philippe Mathieu-Daudé wrote: > Hi Alexey, > > On 12/14/18 3:58 AM, Alexey Kardashevskiy wrote: >> This adds an accelerator name to the "into mtree -f" to tell the user if >> a particular memory section is registered with the accelerator; >> the primary user for this is KVM

Re: [Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2018-12-14 Thread Philippe Mathieu-Daudé
Hi Alexey, On 12/14/18 3:58 AM, Alexey Kardashevskiy wrote: > This adds an accelerator name to the "into mtree -f" to tell the user if > a particular memory section is registered with the accelerator; > the primary user for this is KVM and such information is useful > for debugging purposes. > >

[Qemu-devel] [PATCH qemu v2] hmp: Print if memory section is registered with an accelerator

2018-12-13 Thread Alexey Kardashevskiy
This adds an accelerator name to the "into mtree -f" to tell the user if a particular memory section is registered with the accelerator; the primary user for this is KVM and such information is useful for debugging purposes. This adds a has_memory() callback to the accelerator class allowing any a