Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp855665imm; Thu, 6 Sep 2018 11:07:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaA6b3FDgEZrefS18I+Tz5YScWQxBDqFhhMSGQ1uSkfXizVTbl2YVmEDa49yFDtpQpAfTCp X-Received: by 2002:a63:d10c:: with SMTP id k12-v6mr4145865pgg.49.1536257261884; Thu, 06 Sep 2018 11:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536257261; cv=none; d=google.com; s=arc-20160816; b=QfMzXzyNkfaO+ZkS8Gy68PZCQ2x7TOqRCUo7po9lqss+jcSZTgKDthECGyzS0jFMMh ObJgWBJaCaGDvTyHgIuzNSst2BcaOu9ONDu6kTS8pmnS9G973gNmGuJFuSANGyJpO4HE 1HRRnmbcr5vrudP6s1vYKsMPvlHpZN7lGcvF8A+yLidubpyKSv75U3zmrgB0f4KCLnYd CI4M5CfajO6xD/xQlg9WpY/24dmRlP3SaraZoWeWaGX1aV6lKvl0uyrsByNP6WWs/oRS AtyZ3nSnQRas4up09hYRA+e3Ef0rDQ0T4jE8sjI1fNrkxKYU8ZA1r7YAuztgRP45hi85 avhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lN1N41FsDXMkSTNWK6B0SikMpNLdmtjjhNw5z/r22/Q=; b=ZhiMQk1+Mk+hz5ugo0bnc/t3kk8dudNmY2fprSbctp6fpOqCiUqjOB4rNKO8/Vjdaf 11xRnpUTuqlwHfAgzLh70hTLku0fzVjT+Ot4BSTWZ+hPoUuEHR644eyLLAZbI8tHHkGT 5NwQk7bM17nC34aamE4v3QDKeEeM/wTml7XyteGtKxWd9e3E6Zl/R04jmTOBMSThdivn 5nkuu7cj6oJPfteETNkHeKGVJ1Mkybq02z4Aayd9YVqqyJym4u4RV/np1mEkdHg8Z3MI THC1XsQQ/xiESHS50YwXZVOW1Z6g7gbVRD8rFoVkJdJvxFBfeFO32KKYXwlSIKe5979B WtqA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l185-v6si5793660pfl.134.2018.09.06.11.06.55; Thu, 06 Sep 2018 11:07:41 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728784AbeIFRfm (ORCPT + 99 others); Thu, 6 Sep 2018 13:35:42 -0400 Received: from smtp03.citrix.com ([162.221.156.55]:61880 "EHLO SMTP03.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727700AbeIFRfm (ORCPT ); Thu, 6 Sep 2018 13:35:42 -0400 X-IronPort-AV: E=Sophos;i="5.53,338,1531785600"; d="scan'208";a="64591337" Date: Thu, 6 Sep 2018 14:00:16 +0100 From: Wei Liu To: Vitaly Kuznetsov CC: , , Boris Ostrovsky , Juergen Gross , Wei Liu Subject: Re: [PATCH] xen/manage: don't complain about an empty value in control/sysrq node Message-ID: <20180906130016.3nu6zvitjci7x5ge@zion.uk.xensource.com> References: <20180906112608.4221-1-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180906112608.4221-1-vkuznets@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 01:26:08PM +0200, Vitaly Kuznetsov wrote: > When guest receives a sysrq request from the host it acknowledges it by > writing '\0' to control/sysrq xenstore node. This, however, make xenstore > watch fire again but xenbus_scanf() fails to parse empty value with "%c" > format string: > > sysrq: SysRq : Emergency Sync > Emergency Sync complete > xen:manage: Error -34 reading sysrq code in control/sysrq > > Ignore -ERANGE the same way we already ignore -ENOENT, empty value in > control/sysrq is totally legal. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Wei Liu