From patchwork Thu Oct 26 07:57:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 10027701 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 5B3906032C for ; Thu, 26 Oct 2017 07:59:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C97C28B3B for ; Thu, 26 Oct 2017 07:59:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4159528D4B; Thu, 26 Oct 2017 07:59:29 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 834B128D4A for ; Thu, 26 Oct 2017 07:59:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7d2o-000705-TJ; Thu, 26 Oct 2017 07:57:38 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7d2n-0006zw-9u for xen-devel@lists.xenproject.org; Thu, 26 Oct 2017 07:57:37 +0000 Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id 3F/F0-08856-07591F95; Thu, 26 Oct 2017 07:57:36 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNIsWRWlGSWpSXmKPExsXS6fjDSzd/6sd Ig3uzrCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oz9N4+yF7xirtg+eyZLA+NRpi5GTg4hgTyJ 9b8esHUxcnDwCthJPJ7FChKWEDCUOL3wJguIzSKgKrHobR8ziM0moC7R9mw7K0i5iICBxLmjS SBhZoFwie+PetlAbGEBV4kTOy5ATbeT2LBjCVgrp4C9xKlLbawQmwQl/u4QhmjVknj46xYLhK 0tsWzha2aQEmYBaYnl/zgmMPLNQmiYhaRhFpKGWQgNCxhZVjFqFKcWlaUW6RoZ6CUVZaZnlOQ mZuboGhoY6+WmFhcnpqfmJCYV6yXn525iBAZePQMD4w7G5hN+hxglOZiURHkZ9nyIFOJLyk+p zEgszogvKs1JLT7EKMPBoSTBmzTlY6SQYFFqempFWmYOMAZg0hIcPEoivHogad7igsTc4sx0i NQpRkuOGw+v/2Hi6Lh5F0g+m/m6gVmIJS8/L1VKnNcMpEEApCGjNA9uHCxOLzHKSgnzMjIwMA jxFKQW5WaWoMq/YhTnYFQS5nUCmcKTmVcCt/UV0EFMQAc1qX4AOagkESEl1cBYLrkw9npTxYu ITOGeF/a7HapmiXVbfJv9TufId57di6+6qtad2iGyznKzv19oc13uvO9XHmp3LfMVv+xz0O+0 WYTmB72cpgredZ5vZBmUtmZ9PcTAfS1TX6BgZiDHwtdSdrE5piujTbcY6N570vE23Dif++bKI w0zQuoyojIyX3WWTVF4Hq7EUpyRaKjFXFScCAAzH4/uzgIAAA== X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-13.tower-31.messagelabs.com!1509004654!107456032!1 X-Originating-IP: [137.65.248.74] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26771 invoked from network); 26 Oct 2017 07:57:35 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-13.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 26 Oct 2017 07:57:35 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Thu, 26 Oct 2017 01:57:33 -0600 Message-Id: <59F1B18B020000780018A1C2@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.2 Date: Thu, 26 Oct 2017 01:57:31 -0600 From: "Jan Beulich" To: "xen-devel" References: <59F1AB3E020000780018A19C@prv-mh.provo.novell.com> In-Reply-To: <59F1AB3E020000780018A19C@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Disposition: inline Cc: Andrew Cooper , Julien Grall Subject: [Xen-devel] [PATCH 2/2] x86: fix asm() constraint for GS selector update X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Exception fixup code may alter the operand, which ought to be reflected in the constraint. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- a/xen/arch/x86/x86_64/mm.c +++ b/xen/arch/x86/x86_64/mm.c @@ -1062,7 +1062,7 @@ long do_set_segment_base(unsigned int wh " jmp 1b \n" ".previous \n" _ASM_EXTABLE(1b, 2b) - : : "r" (base&0xffff) ); + : "+r" (base) ); break; default: