From patchwork Fri Jun 22 23:59:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liran Alon X-Patchwork-Id: 10483333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 45E8A60532 for ; Sat, 23 Jun 2018 00:00:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2D2D429068 for ; Sat, 23 Jun 2018 00:00:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E74102906E; Sat, 23 Jun 2018 00:00:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F3AA29090 for ; Sat, 23 Jun 2018 00:00:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934298AbeFWAAO (ORCPT ); Fri, 22 Jun 2018 20:00:14 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:36008 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934264AbeFWAAN (ORCPT ); Fri, 22 Jun 2018 20:00:13 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5MNwtrB105396; Fri, 22 Jun 2018 23:59:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=ow/MeAswA66T/23Uh4aNEf+fpkQlv6gIpugs53PAycQ=; b=CVN3ID8wj3+DHWcXTIdj4/p7jwlj5K8pe5mjp6ZoIewqumTBhWAj0XtIRkcw+Dk3zUx6 bxs+xmEh15Qgh/0P/UbP29uPhFN2zvvQDrHkcRQ5x58hMFU5fBv3tGzysAIn38YThHMN kQGpTcGPWy/7wPmt5JLoFcohAUJQilEV0IhBdmp7nq1pq5GNyDhW0cZRx0BAaGVZG334 Czro7PDDD3FNoPYJtZExCfWixMl6qcxCiFOTYVQqSaHxf08bQK/le27KGAuX1IdfrFvy 2lDGXFkWwpegMLdMsK+71g0ADLeTVP6jx8/KSm+VEtBObaac5U2OHodySiTsf2JHopF2 Ng== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2jrp8huqs7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Jun 2018 23:59:58 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w5MNxvaP000986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Jun 2018 23:59:57 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5MNxvPL019646; Fri, 22 Jun 2018 23:59:57 GMT Received: from liran-pc.mynet (/79.183.72.72) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 22 Jun 2018 16:59:56 -0700 From: Liran Alon To: pbonzini@redhat.com, rkrcmar@redhat.com, kvm@vger.kernel.org Cc: jmattson@google.com, idan.brown@oracle.com, Liran Alon Subject: [PATCH kvm-unit-tests 2/9] x86: lib: Define const for all ALU flags Date: Sat, 23 Jun 2018 02:59:33 +0300 Message-Id: <1529711980-32764-3-git-send-email-liran.alon@oracle.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1529711980-32764-1-git-send-email-liran.alon@oracle.com> References: <1529711980-32764-1-git-send-email-liran.alon@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8932 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=552 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806220265 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Liran Alon Signed-off-by: Jim Mattson --- lib/x86/processor.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index 89ee528a2e36..c06a40d89c9c 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -46,6 +46,9 @@ #define X86_EFLAGS_NT 0x00004000 #define X86_EFLAGS_AC 0x00040000 +#define X86_EFLAGS_ALU (X86_EFLAGS_CF | X86_EFLAGS_PF | X86_EFLAGS_AF | \ + X86_EFLAGS_ZF | X86_EFLAGS_SF | X86_EFLAGS_OF) + #define X86_IA32_EFER 0xc0000080 #define X86_EFER_LMA (1UL << 8)