On 22/06/16 12:02, Itaru Kitayama wrote: > Hi Marc, > > Thanks for your comments. I'm definitely interested in your patch set > that makes KVM to work with large page sizes. I'll ask the vendor to > update some ACPI tables. (I'm on Overdrive with recent F/W though I > think the GICV physical address is aligned at 4KB boundary still) I'm only using DT, which works just fine on Overdrive, even with 64kB pages. I think I understand the issue you're having, which is not what I was thinking of. The issue is that because ACPI doesn't tell us anything about the size of the GICV region, we have to assume that it is 8kB, and cannot distinguish a safe platform from an unsafe one, failing the size test on 64kB. Oh well. How about this: diff --git a/virt/kvm/arm/vgic/vgic-v2.c b/virt/kvm/arm/vgic/vgic-v2.c index e31405e..8aac59b 100644 --- a/virt/kvm/arm/vgic/vgic-v2.c +++ b/virt/kvm/arm/vgic/vgic-v2.c @@ -315,12 +315,10 @@ int vgic_v2_probe(const struct gic_kvm_info *info) return -ENXIO; } - if (!PAGE_ALIGNED(resource_size(&info->vcpu))) { - kvm_err("GICV size 0x%llx not a multiple of page size 0x%lx\n", + if (!PAGE_ALIGNED(resource_size(&info->vcpu))) + kvm_warn("GICV size 0x%llx not a multiple of page size 0x%lx, system may be unsafe\n", (unsigned long long)resource_size(&info->vcpu), PAGE_SIZE); - return -ENXIO; - } kvm_vgic_global_state.vctrl_base = ioremap(info->vctrl.start, resource_size(&info->vctrl)); Thanks, M. -- Jazz is not dead. It just smells funny... _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm