[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 4/9] target/ppc: Add kvmppc_hpt_needs_host_contigu
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH 4/9] target/ppc: Add kvmppc_hpt_needs_host_contiguous_pages() helper |
Date: |
Thu, 21 Jun 2018 16:34:53 +1000 |
User-agent: |
Mutt/1.10.0 (2018-05-17) |
On Thu, Jun 21, 2018 at 07:56:58AM +0200, Cédric Le Goater wrote:
> On 06/18/2018 08:36 AM, David Gibson wrote:
> > KVM HV has a restriction that for HPT mode guests, guest pages must be hpa
> > contiguous as well as gpa contiguous. We have to account for that in
> > various places. We determine whether we're subject to this restriction
> > from the SMMU information exposed by KVM.
> >
> > Planned cleanups to the way we handle this will require knowing whether
> > this restriction is in play in wider parts of the code. So, expose a
> > helper function which returns it.
> >
> > This does mean some redundant calls to kvm_get_smmu_info(), but they'll go
> > away again with future cleanups.
> >
> > Signed-off-by: David Gibson <address@hidden>
>
> Reviewed-by: Cédric Le Goater <address@hidden>
>
> but this patch is already committed it seems.
Yeah. I was pretty confident of these earlier cleanups, so I merged
them with just Greg's R-b. It's 5-9 I'm particularly in need of
review.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [Qemu-ppc] [PATCH 0/9] spapr: Clean up pagesize handling, David Gibson, 2018/06/18
- [Qemu-ppc] [PATCH 3/9] spapr: Add cpu_apply hook to capabilities, David Gibson, 2018/06/18
- [Qemu-ppc] [PATCH 2/9] spapr: Compute effective capability values earlier, David Gibson, 2018/06/18
- [Qemu-ppc] [PATCH 4/9] target/ppc: Add kvmppc_hpt_needs_host_contiguous_pages() helper, David Gibson, 2018/06/18
- [Qemu-ppc] [PATCH 1/9] target/ppc: Allow cpu compatiblity checks based on type, not instance, David Gibson, 2018/06/18
- [Qemu-ppc] [PATCH 7/9] target/ppc: Add ppc_hash64_filter_pagesizes(), David Gibson, 2018/06/18
- [Qemu-ppc] [PATCH 8/9] spapr: Limit available pagesizes to provide a consistent guest environment, David Gibson, 2018/06/18