From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH] VMX controls test framework Date: Fri, 7 Jul 2017 10:50:59 +0200 Message-ID: References: <20170706232733.84364-1-jmattson@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Jim Mattson , kvm@vger.kernel.org Return-path: Received: from mail-wr0-f171.google.com ([209.85.128.171]:34011 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbdGGIvD (ORCPT ); Fri, 7 Jul 2017 04:51:03 -0400 Received: by mail-wr0-f171.google.com with SMTP id 77so37157586wrb.1 for ; Fri, 07 Jul 2017 01:51:02 -0700 (PDT) In-Reply-To: <20170706232733.84364-1-jmattson@google.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 07/07/2017 01:27, Jim Mattson wrote: > + vmcs_write(HOST_RSP, rsp); > + __asm__ __volatile__ goto ("vmlaunch" : : : "cc", "memory" : success); You are putting too much faith in the compiler. :) I'd rather have the HOST_RSP vmwrite inside the asm, similar to vmx_enter_guest (and KVM's vmx_vcpu_run). Otherwise looks good. Paolo > + return false;