From mboxrd@z Thu Jan 1 00:00:00 1970 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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 F1097C6369E for ; Thu, 19 Nov 2020 16:48:11 +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 7CFBF22227 for ; Thu, 19 Nov 2020 16:48:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PsWOOjrz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CFBF22227 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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.31193.61483 (Exim 4.92) (envelope-from ) id 1kfn6C-0005DO-Go; Thu, 19 Nov 2020 16:47:56 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 31193.61483; Thu, 19 Nov 2020 16:47:56 +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 1kfn6C-0005DH-DR; Thu, 19 Nov 2020 16:47:56 +0000 Received: by outflank-mailman (input) for mailman id 31193; Thu, 19 Nov 2020 16:47:55 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfn6A-0005DB-Tr for xen-devel@lists.xenproject.org; Thu, 19 Nov 2020 16:47:54 +0000 Received: from mail-wm1-x32f.google.com (unknown [2a00:1450:4864:20::32f]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c1731af1-f070-4113-b0c2-27995c80fcb4; Thu, 19 Nov 2020 16:47:54 +0000 (UTC) Received: by mail-wm1-x32f.google.com with SMTP id d142so7825493wmd.4 for ; Thu, 19 Nov 2020 08:47:54 -0800 (PST) Received: from CBGR90WXYV0 (host109-146-187-185.range109-146.btcentralplus.com. [109.146.187.185]) by smtp.gmail.com with ESMTPSA id u6sm574570wmj.40.2020.11.19.08.47.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Nov 2020 08:47:52 -0800 (PST) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kfn6A-0005DB-Tr for xen-devel@lists.xenproject.org; Thu, 19 Nov 2020 16:47:54 +0000 X-Inumbo-ID: c1731af1-f070-4113-b0c2-27995c80fcb4 Received: from mail-wm1-x32f.google.com (unknown [2a00:1450:4864:20::32f]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id c1731af1-f070-4113-b0c2-27995c80fcb4; Thu, 19 Nov 2020 16:47:54 +0000 (UTC) Received: by mail-wm1-x32f.google.com with SMTP id d142so7825493wmd.4 for ; Thu, 19 Nov 2020 08:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=Exw3myhehWT2/9tPrsDQoWiIuT+J+BTbzR4akiYXSpI=; b=PsWOOjrzzmk84CdhZM/EW4UrpanJRNqZv+H6Nfe4Mx6XR4wGoNjodOKCqV5+wv5mLr KQzWARYzijodq3emI/vf+blBCigaCKCuxnDOjRvSU/Y624C8gnJwKVyTT7yC6X/x/qOL FkREZJxpFLzNEQ/zPr+VG7KAApLCwcYvLO00696Nue52gUMLdWPaVMKv3xn6CmfUVvxl LS7BloTkIHliU1vEhckwwsVxfQsHR9ejwVIluoSwOXC2CuLjvvFcy+qb+FMizaA/V76q HiesQPIi82eBHB1oxI1FhgDz3VC3z5mJ8PGd5sEHuIG8sGHyI1Ak1qs8T1cRw5huti7y U3mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:to:cc:references:in-reply-to :subject:date:message-id:mime-version:content-transfer-encoding :content-language:thread-index; bh=Exw3myhehWT2/9tPrsDQoWiIuT+J+BTbzR4akiYXSpI=; b=SxeCPI/I+za6y694RkRv+/AyZWbjcDbskqAPNDSB50jetQYM+Y9bT8YSvmlKRczhrC 8ONiyISsu3GYGYCz3CPkgl5L28j52b1Tku0RMW43KIkDwfWSYmWHjEdVApRdMvpn0uFh ztNyszoONgsc70LAsq9AGOyJRcMCr5aLqKzX3R4MdBQvMRiksrNX4szsf89ru87M5SYH 1dvuBF5XF/ZTKasyXzLp1D9KDQ+pYAUrwQlIgNc/b6HLXPGTi9M+U5QolA41eebmzLXA I+73lPjic8vUNWGhfgSwk2js8toOYSUys6JRhZ7QhNMt7ZoR8KcxGcUlzRUNzxe+7dVh d4qw== X-Gm-Message-State: AOAM532qf0YEQGTh9qM4j43SwwAs3wulrnSYxnbzI0gPxYZXywtRfy/p GLhCfOI+FZ9llvk8fFoiBEU= X-Google-Smtp-Source: ABdhPJyljCFPFEHkP0a17oyTk6p8MoWTjdAJtafhl5XLvjdfD69NtmX9BA3Cm9nWnvvgrueFiVvSaA== X-Received: by 2002:a1c:b487:: with SMTP id d129mr5745313wmf.38.1605804473291; Thu, 19 Nov 2020 08:47:53 -0800 (PST) Received: from CBGR90WXYV0 (host109-146-187-185.range109-146.btcentralplus.com. [109.146.187.185]) by smtp.gmail.com with ESMTPSA id u6sm574570wmj.40.2020.11.19.08.47.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Nov 2020 08:47:52 -0800 (PST) From: Paul Durrant X-Google-Original-From: "Paul Durrant" Reply-To: To: "'Jan Beulich'" Cc: "'Paul Durrant'" , "'Wei Liu'" , "'Andrew Cooper'" , =?UTF-8?Q?'Roger_Pau_Monn=C3=A9'?= , References: <20201111200721.30551-1-paul@xen.org> <20201111200721.30551-7-paul@xen.org> <00cc01d6be8e$b24973c0$16dc5b40$@xen.org> In-Reply-To: Subject: RE: [PATCH 06/10] viridian: add ExProcessorMasks variants of the flush hypercalls Date: Thu, 19 Nov 2020 16:47:52 -0000 Message-ID: <00ce01d6be93$b90857d0$2b190770$@xen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQIKCyTUSJ7jm2WJ2nMqsy5EhijKogHMVqApAbxd85QCfSbd3ALQ2i2tqSJbAxA= > -----Original Message----- > From: Jan Beulich > Sent: 19 November 2020 16:45 > To: paul@xen.org > Cc: 'Paul Durrant' ; 'Wei Liu' ; = 'Andrew Cooper' > ; 'Roger Pau Monn=C3=A9' = ; xen-devel@lists.xenproject.org > Subject: Re: [PATCH 06/10] viridian: add ExProcessorMasks variants of = the flush hypercalls >=20 > On 19.11.2020 17:11, Paul Durrant wrote: > >> From: Jan Beulich > >> Sent: 12 November 2020 09:19 > >> > >> On 11.11.2020 21:07, Paul Durrant wrote: > >>> --- a/xen/arch/x86/hvm/viridian/viridian.c > >>> +++ b/xen/arch/x86/hvm/viridian/viridian.c > >>> @@ -553,6 +553,83 @@ static unsigned int vpmask_next(struct = hypercall_vpmask *vpmask, unsigned int > >> vp > >>> (vp) < HVM_MAX_VCPUS; \ > >>> (vp) =3D vpmask_next(vpmask, vp)) > >>> > >>> +struct hypercall_vpset { > >>> + struct hv_vpset set; > >>> + uint64_t __bank_contents[64]; > >> > >> gcc documents this to be supported as an extension; did you check > >> clang supports this, too? > > > > By 'this', do you mean the assumption that that memory layout is = consecutive? >=20 > No, rather the basic language aspect that in standard C a struct > member which is a struct ending in a flexible array member may > not be followed by any other field. > Ah, ok, now I understand what you mean. I'll union it to reserve the = space instead. Paul =20 > Jan