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

Re: [Xen-devel] [PATCH v4 09/10] nVMX: virutalize VPID capability to nested VMM.



>>> On 24.12.12 at 15:26, Xiantao Zhang <xiantao.zhang@xxxxxxxxx> wrote:
> @@ -1433,6 +1456,33 @@ int nvmx_handle_invept(struct cpu_user_regs *regs)
>      (((__emul_value(enable1, default1) & host_value) & (~0ul << 32)) | \
>      ((uint32_t)(__emul_value(enable1, default1) | host_value)))
>  
> +int nvmx_handle_invvpid(struct cpu_user_regs *regs)
> +{
> +    struct vmx_inst_decoded decode;
> +    unsigned long vpid;
> +    u64 inv_type;
> +
> +    if ( decode_vmx_inst(regs, &decode, &vpid, 0) != X86EMUL_OKAY )
> +        return X86EMUL_EXCEPTION;

Same comment as for patch 8.

> +
> +    inv_type = reg_read(regs, decode.reg2);
> +
> +    switch ( inv_type ) {

And here.

Jan

> +    /* Just invalidate all tlb entries for all types! */
> +    case INVVPID_INDIVIDUAL_ADDR:
> +    case INVVPID_SINGLE_CONTEXT:
> +    case INVVPID_ALL_CONTEXT:
> +        hvm_asid_flush_vcpu_asid(&vcpu_nestedhvm(current).nv_n2asid);
> +        break;
> +    default:
> +        vmreturn(regs, VMFAIL_INVALID);
> +        return X86EMUL_OKAY;
> +    }
> +
> +    vmreturn(regs, VMSUCCEED);
> +    return X86EMUL_OKAY;
> +}
> +
>  /*
>   * Capability reporting
>   */



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


 


Rackspace

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