Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp459415imm; Wed, 13 Jun 2018 03:21:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLHeQQ/3OOulfPE5qqdcNy6bhg5SgjTuxweO529jUHULxd1f6gvLZONH9e3rGwa5NuZw7Ls X-Received: by 2002:a62:d2c3:: with SMTP id c186-v6mr4255240pfg.44.1528885262368; Wed, 13 Jun 2018 03:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528885262; cv=none; d=google.com; s=arc-20160816; b=DT3zYyRLvH3nCwLQXMuPIBL768NKIUCwtQJCC2onlxCAF8y0xe5afrH9NL2KALOsRA 7Qw4RvrqZ/WvYPl6+bwnvN3utnPAe1pCEm7bxpjXyCd9TmgD557DMKqZrDibcc00nXT6 uR+KTsUK9u0HtNlNl4exhLLVSFcpM2ZcfEhFET3WegXkUzUMsbAXpV6E+Jy440jjIIX2 og3sXEPWN+CxoTVJpwkMtrEQqjnqZ5VSF4qrf0NLU16UZiJQsi8/v9CKb4aqIPzJOl7o Ahm/0IM3g1QoExTTMe/G1lV0qDeAvM9LI37Yl5WL2fo71wvHPQiRg7leYVh9FkzZvpgV cdVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id:arc-authentication-results; bh=IZdVcoV0+MCINu3c8Y5Jr8Zu18MHcTCCPErC8Zzvlj4=; b=G76isQ7UNJw4jj2Af4vsUx0rnmDmhZT71i3IRPnE0fRhSAFTyp5MDf5+Rovt4kqVhD lxsNoOUyrwxqVXFK6tK77mokVd9atbLTJ3GshzQHAtrgtZW2EacgSLneyRja/zuDhCh9 AtlnOoI0iqPKkaGRTl5WJil2Ub6hpuVyL47RGi0jUCJA0pX9fpfOD/RGoasEMc5p21if pYZ7hYZrgZCKcS479SnBxjL9Yjw/AGQ/f61NZMwIpfFILyFU1YNLSX56dxj/MDRG2SVd mYfnxXDFSbZrn0d32oIwj8gVKRfnNmO2uHw9etb4fc9RqXI19NDBhvRwXKY5qK4O80Bb ckYA== 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 b9-v6si2063500pgs.139.2018.06.13.03.20.46; Wed, 13 Jun 2018 03:21:02 -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 S935188AbeFMKUU convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Jun 2018 06:20:20 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:55011 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934947AbeFMKUS (ORCPT ); Wed, 13 Jun 2018 06:20:18 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Wed, 13 Jun 2018 04:20:18 -0600 Message-Id: <5B20EFE102000078001CACD4@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.0 Date: Wed, 13 Jun 2018 04:20:17 -0600 From: "Jan Beulich" To: "Juergen Gross" Cc: "xen-devel" , "Boris Ostrovsky" , Subject: Re: [Xen-devel] [PATCH] xen: don't use privcmd_call() from xen_mc_flush() References: <20180613095806.2978-1-jgross@suse.com> <5B20EC6C02000078001CACBA@prv1-mh.provo.novell.com> In-Reply-To: <5B20EC6C02000078001CACBA@prv1-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 13.06.18 at 12:05, wrote: >>>> On 13.06.18 at 11:58, wrote: >> Using privcmd_call() for a singleton multicall seems to be wrong, as >> privcmd_call() is using stac()/clac() to enable hypervisor access to >> Linux user space. >> >> Add a new xen_single_call() function to be use for that purpose. >> >> Reported-by: Jan Beulich >> Signed-off-by: Juergen Gross > > Reviewed-by: Jan Beulich Actually I've only now realized that this isn't a real problem right now: PV can't use SMAP (we don't provide a virtualized version of it), and HVM/PVH can't use multicalls (which may have to change for PVH Dom0, so having the change in place is helpful anyway), so the whole in-kernel logic to collect and issue batches should be unreachable there. But perhaps the commit message would benefit from a little bit of re-wording. Jan