Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1227982ybv; Fri, 7 Feb 2020 17:10:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwqemTw9sVzDdcd2QRpHeImG/eF7L6WLHDkynV54G1lx3oU0DX1PLgrnQdCyQvzszEzkWup X-Received: by 2002:a05:6830:1049:: with SMTP id b9mr1795738otp.100.1581124212580; Fri, 07 Feb 2020 17:10:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581124212; cv=none; d=google.com; s=arc-20160816; b=S/AvmjKYgku/h4conXATl5r/nKIX53r5PUIGfR25aCowxPVEcHWCGLM2YcsSRE9Y0o /aFbI2miwFpMAappjY5p/jamOO9jg4O1VZ0hkMNVSaE943r0HHdj5GjnHWNPjSB3iCva 0h/BGVA2NwANqD60Cgbedk5MWU8sJ4vkY17GiAOuZAeONhYin3laNNXsq2u83GulCvV4 Xc39VJFvJLz/r4qK8zhc+6VkJgDoRj8XNa6nkPMWBPvCqmUWsIiP5odWiX0lUN22J3gW ykuF2GSrGhbDaH7RmEt6nyYZKJWPmjQoVWl19l1ivgs3KjTdn3L8whYsHrh1LMB1/pFH 9PeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=DfrmC4Z3jp+mcIzm8JLNJvTgLgw18atInL0rLuWEGyI=; b=ViNkWxbAgcIFHSD5tTGzJHA79PUQGoJ4bVfQuZAOs+YYJeTeMhY4hi491emtJhr+jS dwcWnIPjBMTOq9H1Oz4YL0c5tNiUyotebIP2YE81EQb8B2p9SXENOQoU6kCQWApV30UF ztvvk/W/MoM6tnKVbNrKvOjOvEcGKBk2P9RVyEflX4QBlwA5iaeI3igrUeQJ+36UbCkP pybGS7QHnYMtGB4DI9Zz23I3/PK3/qvf/mJSYt9+MCNERCkP+xPhg/czD7Gls8NMJqAO Od9FKEelV1Wp7RZZRI++LltkCmKcBS40ygs9lWQTEegE/88CDxYH9OcqWO1ElNVxKczT 72lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=Q6JAavaa; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si4805824oic.62.2020.02.07.17.09.48; Fri, 07 Feb 2020 17:10:12 -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=@oracle.com header.s=corp-2020-01-29 header.b=Q6JAavaa; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727144AbgBHBID (ORCPT + 99 others); Fri, 7 Feb 2020 20:08:03 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:58580 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727071AbgBHBID (ORCPT ); Fri, 7 Feb 2020 20:08:03 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 01814AB8177285; Sat, 8 Feb 2020 01:07:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=DfrmC4Z3jp+mcIzm8JLNJvTgLgw18atInL0rLuWEGyI=; b=Q6JAavaaDJyOiiuy9rQfOS5EyGWmGIiMitvNQhGOiYZo26lvW6nahkiKE+Eq7rTmK5BB dtgNTD59gAmr4FrPuuBwB6DYBkWTFIJe7h1DzmEglFdIPkL2D6QqvqJDEG7f3+WhNgZY ejp8mMHqrqs8eyaLs8k6oVX0DGPbNNDNeUbP3KM2kp4hd2Gquy3tKTG0EYVlK7dhmWFe +r+DlD2sJFeg3cBtuDLQI6Gu/YD8geXRd9YMyd/3vxCqISDDrh7GKokQajsFZQac2OQQ KiMFr5FxdBBXR5cmp5ueyesitP1EZwzHDVRRUAgMgk0GXSRIckwWbZH8916eVJNvNFsB zQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2xykbpk3pu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 08 Feb 2020 01:07:55 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 01814NAU167750; Sat, 8 Feb 2020 01:07:55 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2y1j4nbagt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 08 Feb 2020 01:07:55 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 01817rZC032342; Sat, 8 Feb 2020 01:07:53 GMT Received: from localhost.localdomain (/10.159.239.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 07 Feb 2020 17:07:53 -0800 Subject: Re: [PATCH v5 2/4] selftests: KVM: Remove unused x86_register enum To: Eric Auger , eric.auger.pro@gmail.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, pbonzini@redhat.com, vkuznets@redhat.com Cc: thuth@redhat.com, drjones@redhat.com, wei.huang2@amd.com References: <20200207142715.6166-1-eric.auger@redhat.com> <20200207142715.6166-3-eric.auger@redhat.com> From: Krish Sadhukhan Message-ID: Date: Fri, 7 Feb 2020 17:07:52 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20200207142715.6166-3-eric.auger@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9524 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2002080006 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9524 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2002080006 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/20 6:27 AM, Eric Auger wrote: > 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: Krish Sadhukhan