Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 237D0C388F7 for ; Thu, 22 Oct 2020 12:52:30 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9AAA820FC3 for ; Thu, 22 Oct 2020 12:52:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=citrix.com header.i=@citrix.com header.b="DNGVj/7L" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AAA820FC3 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.10418.27671 (Exim 4.92) (envelope-from ) id 1kVa4N-0007U1-TW; Thu, 22 Oct 2020 12:51:51 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 10418.27671; Thu, 22 Oct 2020 12:51:51 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVa4N-0007Tu-Qe; Thu, 22 Oct 2020 12:51:51 +0000 Received: by outflank-mailman (input) for mailman id 10418; Thu, 22 Oct 2020 12:51:50 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVa4L-0007To-UV for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 12:51:50 +0000 Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a25d93d5-bcef-4030-8aab-354a820dc891; Thu, 22 Oct 2020 12:51:48 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kVa4L-0007To-UV for xen-devel@lists.xenproject.org; Thu, 22 Oct 2020 12:51:50 +0000 X-Inumbo-ID: a25d93d5-bcef-4030-8aab-354a820dc891 Received: from esa5.hc3370-68.iphmx.com (unknown [216.71.155.168]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a25d93d5-bcef-4030-8aab-354a820dc891; Thu, 22 Oct 2020 12:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1603371108; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=0kl3Fme65YD3FrzucuH0C9HkwK3F3k97YMMsqg/NDA8=; b=DNGVj/7LYOaEbSKhZ81pMjARXXJ7K3g2GxY0/pBZEqReFBVxJ3miq9UZ eLKdypDWuNY/e/mKexHw/dBo5G8RytbzzwSHgSZUQUWF8woSvfsE7R6o/ 1m17JRku1iRSb6pHCLgK+PsQ78s+oKROz9AZacQYPVzgXILAJ2Ic4+ANG E=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: ayDclvKFRdNuUlZcvTc8wwZoFBH417P0zV7UvJO/5QTHiPLiq5XcF8jM+6u7hKMXDBAqxG9POO clqMeZnz9K3SevTcxf9yqypAvC48xd/+JqrnKPBWZW4cVjlbvfPCyW3nINQCT5SSBXYQRbPa7x pPuBNqPM6eRX6rY2mnMC+rUrhvzTpcwsCDMlKqGT33c1xo8Pad9Fs4bdooNBeCqjkOezXLBiCb EAik/6Yu/vPzmsnenLbBlhzPjQ/b/JcwwT3hAfBl1A/6XOORWwkcYc3uaJyPKKmzUo7FNvEtIw tWg= X-SBRS: None X-MesageID: 29618024 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.77,404,1596513600"; d="scan'208";a="29618024" Subject: Re: XSM and the idle domain To: Hongyan Xia , "xen-devel@lists.xenproject.org" , , , References: From: Andrew Cooper Message-ID: Date: Thu, 22 Oct 2020 13:51:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-GB X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To FTLPEX02CL05.citrite.net (10.13.108.178) On 21/10/2020 15:34, Hongyan Xia wrote: > The first question came up during ongoing work in LiveUpdate. After an > LU, the next Xen needs to restore all domains. To do that, some > hypercalls need to be issued from the idle domain context and > apparently XSM does not like it. There is no such thing as issuing hypercalls from the idle domain (context or otherwise), because the idle domain does not have enough associated guest state for anything to make the requisite SYSCALL/INT80/VMCALL/VMMCALL invocation. I presume from this comment that what you mean is that you're calling the plain hypercall functions, context checks and everything, from the idle context? If so, this is buggy for more reasons than just XSM objecting to its calling context, and that XSM is merely the first thing to explode.  Therefore, I don't think modifications to XSM are applicable to solving the problem. (Of course, this is all speculation because there's no concrete implementation to look at.) ~Andrew