Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-08 Thread Paolo Bonzini
> On 2013-05-07 19:26, Jan Kiszka wrote: > > Well, the alternative is to handle a sub-page dispatch (ie. calling into > > subpage_[ram_]read/write just like address_space_rw: take the necessary > > lock that protect mapping changes, look into the sub-page and pick up > > the target region, invoke m

Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-07 Thread Jan Kiszka
On 2013-05-07 19:26, Jan Kiszka wrote: > Well, the alternative is to handle a sub-page dispatch (ie. calling into > subpage_[ram_]read/write just like address_space_rw: take the necessary > lock that protect mapping changes, look into the sub-page and pick up > the target region, invoke memory_regi

Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-07 Thread Jan Kiszka
On 2013-05-07 14:35, Paolo Bonzini wrote: > Il 06/05/2013 22:46, Peter Maydell ha scritto: >> On 6 May 2013 15:26, Jan Kiszka wrote: >>> Simplify the sub-page handling by implementing it directly in the >>> dispatcher instead of using a redirection memory region. We extend the >>> phys_sections en

Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-07 Thread Paolo Bonzini
Il 06/05/2013 22:46, Peter Maydell ha scritto: > On 6 May 2013 15:26, Jan Kiszka wrote: >> Simplify the sub-page handling by implementing it directly in the >> dispatcher instead of using a redirection memory region. We extend the >> phys_sections entries to optionally hold a pointer to the sub-se

Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-07 Thread Paolo Bonzini
Il 06/05/2013 22:46, Peter Maydell ha scritto: > On 6 May 2013 15:26, Jan Kiszka wrote: >> Simplify the sub-page handling by implementing it directly in the >> dispatcher instead of using a redirection memory region. We extend the >> phys_sections entries to optionally hold a pointer to the sub-se

Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-06 Thread Peter Maydell
On 6 May 2013 15:26, Jan Kiszka wrote: > Simplify the sub-page handling by implementing it directly in the > dispatcher instead of using a redirection memory region. We extend the > phys_sections entries to optionally hold a pointer to the sub-section > table that used to reside in the subpage_t s

Re: [Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-06 Thread Paolo Bonzini
Il 06/05/2013 16:26, Jan Kiszka ha scritto: > Simplify the sub-page handling by implementing it directly in the > dispatcher instead of using a redirection memory region. We extend the > phys_sections entries to optionally hold a pointer to the sub-section > table that used to reside in the subpage

[Qemu-devel] [RFC][PATCH 10/15] memory: Rework sub-page handling

2013-05-06 Thread Jan Kiszka
Simplify the sub-page handling by implementing it directly in the dispatcher instead of using a redirection memory region. We extend the phys_sections entries to optionally hold a pointer to the sub-section table that used to reside in the subpage_t structure. IOW, we add one optional dispatch leve