From patchwork Wed Oct 11 15:41:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Lagerwall X-Patchwork-Id: 9999953 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 02C3F60216 for ; Wed, 11 Oct 2017 15:44:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02E3D28A13 for ; Wed, 11 Oct 2017 15:44:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBCC628A8F; Wed, 11 Oct 2017 15:44:28 +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 8D2F028A13 for ; Wed, 11 Oct 2017 15:44:28 +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 1e2J9J-00058Z-R9; Wed, 11 Oct 2017 15:42:21 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2J9I-00058L-9C for xen-devel@lists.xen.org; Wed, 11 Oct 2017 15:42:20 +0000 Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id 53/19-28548-BDB3ED95; Wed, 11 Oct 2017 15:42:19 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRWlGSWpSXmKPExsXitHSDve5V63u RBh8ucFks+biYxYHR4+ju30wBjFGsmXlJ+RUJrBnX/m5hKdjAUjFjezN7A+N+5i5GTg4JAX+J 15eawWw2AQOJW5e+g9kiArISq7vmsHcxcnEwC5xilHh9dRNYQljAQ+L6sqeMIDaLgKrE5SX/W bsYOTh4BWwlJrVUQMyUk9hzcQY7iC0koCbxdvkZFhCbV0BQ4uTMJ2A2s4CExMEXL5gnMHLPQp KahSS1gJFpFaN6cWpRWWqRroVeUlFmekZJbmJmjq6hgbFebmpxcWJ6ak5iUrFecn7uJkZgKDA AwQ7GC+3OhxglOZiURHmD9e5FCvEl5adUZiQWZ8QXleakFh9ilOHgUJLgvWQFlBMsSk1PrUjL zAEGJUxagoNHSYS3CyTNW1yQmFucmQ6ROsVozHHj4fU/TBwdN+/+YRJiycvPS5US590EUioAU ppRmgc3CBYtlxhlpYR5GYFOE+IpSC3KzSxBlX/FKM7BqCTM+wpkCk9mXgncvldApzABnSKadg fklJJEhJRUA6PlWVbdG8dYTFmd2SXeOjK8ubXJ9/2yrS+PbM6bmvu1c+fPgMtvuhQ5VJ9Ir3n ll7LSacZ0lbkC7+skAlVLw1L+sF8L7I3ukUu0fGKhHxNxd23KiXbFPYnXNK7cOvtOzUqx3jxI 7YfY56B986LuL7Tf7fOGe6uCIveXhQUWTQ+Oi0gqsyTumqHEUpyRaKjFXFScCAAERZYmkQIAA A== X-Env-Sender: prvs=450599c34=ross.lagerwall@citrix.com X-Msg-Ref: server-5.tower-31.messagelabs.com!1507736531!106594793!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2694 invoked from network); 11 Oct 2017 15:42:12 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 11 Oct 2017 15:42:12 -0000 X-IronPort-AV: E=Sophos;i="5.43,361,1503360000"; d="scan'208";a="453428410" From: Ross Lagerwall To: Date: Wed, 11 Oct 2017 16:41:57 +0100 Message-ID: <20171011154157.8574-1-ross.lagerwall@citrix.com> X-Mailer: git-send-email 2.9.5 MIME-Version: 1.0 Cc: Ross Lagerwall , Julien Grall , Ian Jackson , Jan Beulich , Andrew Cooper Subject: [Xen-devel] [PATCH for-4.10] xen: Fix XEN_DMOP_remote_shutdown return value 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 Return 0 to indicate success rather than whatever rc was previously set to (-EINVAL). Signed-off-by: Ross Lagerwall Reviewed-by: Andrew Cooper Reviewed-by: Jan Beulich Reviewed-by: Wei Liu --- xen/arch/x86/hvm/dm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/dm.c b/xen/arch/x86/hvm/dm.c index 82addea..32ade95 100644 --- a/xen/arch/x86/hvm/dm.c +++ b/xen/arch/x86/hvm/dm.c @@ -636,6 +636,7 @@ static int dm_op(const struct dmop_args *op_args) &op.u.remote_shutdown; domain_shutdown(d, data->reason); + rc = 0; break; }