[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 10/10] x86/SVM: Add AMD AVIC key handler



>  
> +static void avic_dump(unsigned char ch)
> +{
> +    struct domain *d;
> +    struct vcpu *v;
> +
> +    printk("*********** SVM AVIC Statistics **************\n");
> +
> +    rcu_read_lock(&domlist_read_lock);
> +
> +    for_each_domain ( d )
> +    {
> +        if ( !is_hvm_domain(d) )

|| !svm_avic_vcpu_enabled(d->v[0]) (or something along these lines)?


> +            continue;
> +        printk(">>> Domain %d <<<\n", d->domain_id);
> +        for_each_vcpu ( d, v )
> +        {
> +            printk("\tVCPU %d\n", v->vcpu_id);
> +            printk("\t* incomp_ipi = %u\n",
> +                   v->arch.hvm_svm.cnt_avic_incomp_ipi);
> +            printk("\t* noaccel    = %u\n",
> +                   v->arch.hvm_svm.cnt_avic_noaccel);
> +            printk("\t* post_intr  = %u\n",
> +                   v->arch.hvm_svm.cnt_avic_post_intr);
> +            printk("\t* doorbell   = %u\n",
> +                   v->arch.hvm_svm.cnt_avic_doorbell);
> +        }
> +    }
> +
> +    rcu_read_unlock(&domlist_read_lock);
> +
> +    printk("**************************************\n");
> +
> +}
> +
> +void __init setup_avic_dump(void)
> +{

if ( !svm_avic ) return; ?


-boris


> +    register_keyhandler('j', avic_dump, "dump SVM AVIC", 1);
> +}
> +


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.