Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1412321ybt; Thu, 25 Jun 2020 05:36:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5zH+mhahNWc4Cn9RJBl6LLIEo01zpi0zXq/C0Sm/LStUDOS8jSdizJSQE/nQbLIHxTUVj X-Received: by 2002:a50:8143:: with SMTP id 61mr16006208edc.202.1593088605608; Thu, 25 Jun 2020 05:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593088605; cv=none; d=google.com; s=arc-20160816; b=ZRdrlPeDOPiWZr1rPZxDEo567gsP7S+D13/rWN6EmMp0WvUVpwzWaYsjRN1emR4QE+ 0UZNp/pcaP6oSzJ4NFQnaa8AotTZpMNVFWKB2nDMv7AQcvQ5/0fXuny4BCPnUBsNeqj+ VKv/9XcNs3hEQyrZVg8ohLlN5efMJDrNw1piyD/OUZ36yV1b0IB6/pk2r4YFdHvDk+3C 5NMkEN/OI21E+9nkRznOW84UfNw9Clfn6FtJoid4KfS9KQ9glDYLw7V2TofISsy2C6GY v9GGFqG7xbzYvUieKfIMBXplXqma+XCW7fTtfhbWJRjyM7kp4aaOWnzWOcD95celLewX STyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=4QAA6xTzivbUQMA9MfIr8KswP1KP4qpqOKsLkXMz+OE=; b=zJzENc2vjFU6rr1Vxg0zH4TXy6c3BCk5utX+UOh4dnXpfxvC2w2ImePdjSapRLow54 oe9LY3psqczW1sjgyWzhPsSZwaCo9m1S/QA0XJaQIOSwfNGVcUOybo2w84mj8VbCzp7P CR8WU+ZUnB39IoK2SV8fN1JLymqbNt473pnliXF9Xv4//cvsbIoQVnrEPP2LCOsFB1mO 2fQCHtPOPQ96vOpn1kgTpbTjtJHCs7F/X88EpBzRJzccoPWsBNBDrIxFWf5tfy/JZ6kA DI3jAb+FqXBup+9R2YJD6lXY2ogONba2871VuvSl/8YgUHz0TV9i4eXyVZF/u+FreTJy PQ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hquYfcFj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si3159101ejm.425.2020.06.25.05.36.22; Thu, 25 Jun 2020 05:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hquYfcFj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404679AbgFYMdD (ORCPT + 99 others); Thu, 25 Jun 2020 08:33:03 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:31031 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404451AbgFYMdC (ORCPT ); Thu, 25 Jun 2020 08:33:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593088381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4QAA6xTzivbUQMA9MfIr8KswP1KP4qpqOKsLkXMz+OE=; b=hquYfcFjFb3GQTuEInUnMWpfkFSqcr3qx+4jDfZwggx1P6M5iJciZu5ipc/PhmM4FMZ99i 1TnZ1GMsnTjqXaTGY5N/95O3AI7Yy+Iw9MoPTn1KikKcK5k01gz/Wxrk6RP9tcee3wnzJd YSvNPXV/7Bbr4N2J4f84ZzcGuPIxOvw= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-282-hGq5q48qP_yNA9J7m7qN8w-1; Thu, 25 Jun 2020 08:32:59 -0400 X-MC-Unique: hGq5q48qP_yNA9J7m7qN8w-1 Received: by mail-wr1-f71.google.com with SMTP id d6so6700845wrn.1 for ; Thu, 25 Jun 2020 05:32:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4QAA6xTzivbUQMA9MfIr8KswP1KP4qpqOKsLkXMz+OE=; b=cdFN7kNoFTf2gICzci9ocXUlKXDNqbjEfz1s0hWqVP/ezAMG8LtIp0Dz6AxLclzLZq YHMebRM9JV6n4f+584zFKXPi3IKC39l+xlpO8ZaUX777B3/Wr4qI+5D/40nIaelvO8P+ 7NzEt7BbExTXsgdIN6Uk8H6tlNYl9zVTQouM5+ptbszj8b5wxQyQ18snSRvwWX2eTC1m hZIqsP43tP5UmsT3LYPpstNAWUpo/BMYy3fiy1jst82J0+Ee+U3be51LcTHIjmwYUp1e KD7aVh7sTVnqtGmCDaqCHnKGyTbOTwR/nRGXcUvawt3oRF3NjEkR4UbdPpX4xJ5AfV/e wxnQ== X-Gm-Message-State: AOAM531vz0cDzCQFwSqOLwLnbK+GG2trwrRSpxqspssP7CeYJubl5ED6 swYwSbexw7qV6IboykAtxUOFA4YZJC3QpqvAHS5pHxBGvfSKo9/Ufjkr9RNow4j0b/Ra7RzZF9+ /FerTy81+aNt162W7e0LNZIzS X-Received: by 2002:adf:ff8c:: with SMTP id j12mr36129916wrr.230.1593088378319; Thu, 25 Jun 2020 05:32:58 -0700 (PDT) X-Received: by 2002:adf:ff8c:: with SMTP id j12mr36129899wrr.230.1593088378068; Thu, 25 Jun 2020 05:32:58 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:91d0:a5f0:9f34:4d80? ([2001:b07:6468:f312:91d0:a5f0:9f34:4d80]) by smtp.gmail.com with ESMTPSA id b18sm30801881wrn.88.2020.06.25.05.32.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jun 2020 05:32:57 -0700 (PDT) Subject: Re: [PATCH] KVM: x86: Use VMCALL and VMMCALL mnemonics in kvm_para.h To: Uros Bizjak , kvm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200623183439.5526-1-ubizjak@gmail.com> From: Paolo Bonzini Message-ID: <30a01d1f-5b36-5171-3d0a-e14fa7afa62e@redhat.com> Date: Thu, 25 Jun 2020 14:32:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200623183439.5526-1-ubizjak@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/06/20 20:34, Uros Bizjak wrote: > Current minimum required version of binutils is 2.23, > which supports VMCALL and VMMCALL instruction mnemonics. > > Replace the byte-wise specification of VMCALL and > VMMCALL with these proper mnemonics. > > Signed-off-by: Uros Bizjak > CC: Paolo Bonzini > --- > arch/x86/include/asm/kvm_para.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h > index 49d3a9edb06f..01317493807e 100644 > --- a/arch/x86/include/asm/kvm_para.h > +++ b/arch/x86/include/asm/kvm_para.h > @@ -18,7 +18,7 @@ static inline bool kvm_check_and_clear_guest_paused(void) > #endif /* CONFIG_KVM_GUEST */ > > #define KVM_HYPERCALL \ > - ALTERNATIVE(".byte 0x0f,0x01,0xc1", ".byte 0x0f,0x01,0xd9", X86_FEATURE_VMMCALL) > + ALTERNATIVE("vmcall", "vmmcall", X86_FEATURE_VMMCALL) > > /* For KVM hypercalls, a three-byte sequence of either the vmcall or the vmmcall > * instruction. The hypervisor may replace it with something else but only the > Queued, thanks.