[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] heavy P2M lock contention on guest HPET counter reads
On Wed, Jul 30, 2014 at 10:22 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
 This is reasonable. I suggest knee-capping the open coding and moving this block into its own little inline function (e.g. try_shortcut_hvm_mmio). I think soon enough we may run into the next Xen-implemented mmio range that is getting pounded. In any case it will do for better-looking code. Roughly:
int try_shortcut_hvm_mmio(struct vcpu *v, paddr_t gpa) { Â Â int i; Â Â if ( nestedhvm_vcpu_in_guestmode(v) Â Â Â Â Â|| !is_hvm_vcpu(v))
    return 0;   for ( i = 0; i < HVM_MMIO_HANDLER_NR; i++ )     if ( hvm_mmio_handlers[i]->check_handler(v, gpa) )       return 1; } Having said that, I don't know off the top of my head that is obviously correct to shortcut the p2m lookup for msix table and iommu. I think so, but... Andres   Â{ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |