|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v10 18/32] ARM: vITS: introduce translation table walks
Hi Andre, On 26/05/17 18:35, Andre Przywara wrote: This check will always fail with the command DISCARD because collid == UNMAPPED_COLLECTION (~0). Looking at the code, I am not sure why you need to validate collid and nr_lpis in write_itte_locked. This should have been made by the caller. + + if ( vlpi >= its->d->arch.vgic.nr_lpis ) + return false; + + addr = its_get_itte_address(its, devid, evid); + if ( addr == INVALID_PADDR ) + return false; + + itte.collection = collid; + itte.vlpi = vlpi; + + if ( vgic_access_guest_memory(its->d, addr, &itte, sizeof(itte), true) ) + return false; + + if ( vcpu_ptr ) + *vcpu_ptr = get_vcpu_from_collection(its, collid); I guess this is why you check the collection in this function. However, I am not sure how this is related to write_itte_locked. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |