Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp710214ybv; Fri, 7 Feb 2020 07:09:50 -0800 (PST) X-Google-Smtp-Source: APXvYqwBduMvszu9CIMXnC8bLjmNnLcn+mzsPyelMa0ZJw+FwVE/xS/an0IPPY6vzEsMmNxneXHF X-Received: by 2002:a05:6830:2015:: with SMTP id e21mr2967923otp.106.1581088189820; Fri, 07 Feb 2020 07:09:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581088189; cv=none; d=google.com; s=arc-20160816; b=J7yk4ZXNOy2PanEq0aovCmfs8pm+MoVAnFEEgh9QbnNOT02oEyKTQK39+plYYzI7Su lxOvAoZwpFreo/k5QSDbFCPk5YkQZdjJ9YqZwJOp+L82bbwUI/xLsxAKdpaKsd2PT98M pw+2E0mIYcL1OkG/qFGcC8vGBTK2XvgExFZvD8MLYAy5IhOzGi5HyOcQiqQWq3cK/0id i/c3gC9NWV1hO0k0XsCIY91Qw8kuawSmhAMvudCoZlw39VqnQKG4vLlypOYVNoskPNUo hZnr+c5fTgUaSB6cHmhSoEvey9VqFO0aVcq8d1Q0qecYAI82iRK+Kiuv/HSQFzqM7Ct7 MetA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=5g8c3Dt5YGFnyjeCvdVnSkJ8OoAq7ZLBS2fAhe/Z94c=; b=F1G5UOqvX2ocmy9dr+oEmYXDtrLzwC226wyIbHhGFGSvRBdmXjcac4CjmShICUfUsx sWlvxCEYcRV9/pwkUNM5WtT11vlCCCpLuJBdFLDqKmHXJtEZSEDv1PCYnghhoNAk+QTi 6KOwXgnLe6dKNhmhh4lh44ou+8EZ/EUh23aflWeIPClXUPvHTbk/Z8ChrOxIBNAa2H0E 3P2OtI4pYoNh7YYK9G+pBfxQF+0+wxGp951nC9dRNVUn92NxzE282Wav9SOPAweWtYK2 DigRv64VGOpjDsAaoC3u0Wbn8JpET8CDZqh8C0ZM6yYjEhKBF6pl3UZcSY25nZoMTyAN 4yRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a1GbGbpA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x20si1751847otq.222.2020.02.07.07.09.36; Fri, 07 Feb 2020 07:09:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a1GbGbpA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727234AbgBGPIK (ORCPT + 99 others); Fri, 7 Feb 2020 10:08:10 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58038 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727138AbgBGPIK (ORCPT ); Fri, 7 Feb 2020 10:08:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581088088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5g8c3Dt5YGFnyjeCvdVnSkJ8OoAq7ZLBS2fAhe/Z94c=; b=a1GbGbpAJCwwKigIbSSzxXx5F7ONbI20czAjQ+CyhwSY1IdOUpG+l3fkTV9o+9zkMonUfX byqkS6+8azRVPLIo8KqMPAOwZ5iJbhj06TXtN+n1w8poUlLVLFVycsO99FZmvQdP8DC9Dv 2hemKD8a+RRMPInGzyUA3cY+58YrTZ8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-280-o1aMWy3gPNKEUyZyJg_gJw-1; Fri, 07 Feb 2020 10:08:02 -0500 X-MC-Unique: o1aMWy3gPNKEUyZyJg_gJw-1 Received: by mail-wm1-f72.google.com with SMTP id y125so1744920wmg.1 for ; Fri, 07 Feb 2020 07:07:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=5g8c3Dt5YGFnyjeCvdVnSkJ8OoAq7ZLBS2fAhe/Z94c=; b=hXSc1Ms0nA1w+ur1HJdiOi+J896o786lA3+t5ZdYTCnp8fdMBUN3tep/CG/EB+Ee1k p2HTuLDDRomL/CSso2blFelvrj5p6mXpWOyuj0pDEa1Tazyys6vl69FiR5eNR/muAUVa rkQlA5oX/9AmzjpXLUNUENwj647cZt6DAxn1syfNgWCOOYI8hHPAlxDC3Ux1pVkwqRhB bHd1S0g9kfxbkx9N+QDzuvJZPOgppUsI7Mo41CRiTR5s5NVockO2Apwnsh6Fqu0Ooiph JfJCYhZxWfKV9+gtLioKjlQLxSP1/wn/FjgsB4eWSeTd6OXRukXeF9LP3EyGapCKrKyE hpNg== X-Gm-Message-State: APjAAAXJ/TOjnU28jI2sffV7R6VjocM5ZQkqTpU3OJAUMUrrOrfDVtVP eetP9eUhmJJCSKFV8UbT/ArrsECYOmCa28qFvv7muwz/Jlh9zgSKkSodPVc4rS9tECU5vv+bqvC YCB/uheZRP/OEWeYB8rgua8jN X-Received: by 2002:adf:f28c:: with SMTP id k12mr5384287wro.360.1581088077958; Fri, 07 Feb 2020 07:07:57 -0800 (PST) X-Received: by 2002:adf:f28c:: with SMTP id k12mr5384273wro.360.1581088077787; Fri, 07 Feb 2020 07:07:57 -0800 (PST) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id e16sm3662109wrs.73.2020.02.07.07.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 07:07:57 -0800 (PST) From: Vitaly Kuznetsov To: Eric Auger Cc: thuth@redhat.com, drjones@redhat.com, wei.huang2@amd.com, krish.sadhukhan@oracle.com, eric.auger.pro@gmail.com, eric.auger@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com Subject: Re: [PATCH v5 2/4] selftests: KVM: Remove unused x86_register enum In-Reply-To: <20200207142715.6166-3-eric.auger@redhat.com> References: <20200207142715.6166-1-eric.auger@redhat.com> <20200207142715.6166-3-eric.auger@redhat.com> Date: Fri, 07 Feb 2020 16:07:56 +0100 Message-ID: <87mu9uqvub.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Auger writes: > x86_register enum is not used. Its presence incites us > to enumerate GPRs in the same order in other looming > structs. So let's remove it. > > Signed-off-by: Eric Auger > Suggested-by: Vitaly Kuznetsov > --- > .../selftests/kvm/include/x86_64/processor.h | 20 ------------------- > 1 file changed, 20 deletions(-) > > diff --git a/tools/testing/selftests/kvm/include/x86_64/processor.h b/tools/testing/selftests/kvm/include/x86_64/processor.h > index 6f7fffaea2e8..e48dac5c29e8 100644 > --- a/tools/testing/selftests/kvm/include/x86_64/processor.h > +++ b/tools/testing/selftests/kvm/include/x86_64/processor.h > @@ -36,26 +36,6 @@ > #define X86_CR4_SMAP (1ul << 21) > #define X86_CR4_PKE (1ul << 22) > > -/* The enum values match the intruction encoding of each register */ > -enum x86_register { > - RAX = 0, > - RCX, > - RDX, > - RBX, > - RSP, > - RBP, > - RSI, > - RDI, > - R8, > - R9, > - R10, > - R11, > - R12, > - R13, > - R14, > - R15, > -}; > - > struct desc64 { > uint16_t limit0; > uint16_t base0; Reviewed-by: Vitaly Kuznetsov -- Vitaly