Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp845879pxb; Fri, 22 Apr 2022 12:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxENkMjiNxGyVZkIsi62Nkgc8ahBMxcBK7xq5IJDaSZy2DOr9lJkJPmPFsAiHty0JaZbA7 X-Received: by 2002:a17:902:ef50:b0:156:486f:b593 with SMTP id e16-20020a170902ef5000b00156486fb593mr6074695plx.104.1650655617355; Fri, 22 Apr 2022 12:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650655617; cv=none; d=google.com; s=arc-20160816; b=lo7tNK2WAxjXNOjz7FknM5pHwwb5loGpnS9dGDsD2AuzRa7OLQgYrdeLc3PHsyozmM VUgI21IzDf4ufnQO+2PRS7AmTEwnmAN4n8KtlvhzoBMz74oETWLchdaQIt1fzYNuW/CF 4JTKb7euUWmcfPLmL4y2wgeNr7ldfS/cb0BjQEM54a7jyVdcBUkE8IfI4+LB8uo/a0Eo 68hiiu3PXmSYDU/VNWp0F9fSjcijKYgRRDIt1gqHQAip49KGcfxKYQHQO588iBk9kJ9u cV6BPQ2m8tmkzXZaCPA2iOK81zJFIUbUGufwLngF9XWjCSMko02ukKUQRuRWhErfXxlI UloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=htBc+tkv2t0KCV7NxZPr1OZ70wCiPUIfu1Kk+i4HfxA=; b=vu3xENQ1Me2rVfd18reysMPTfTnvT+TO5PRa2mzj+MFnQgpfriHqt2ehTIrZW4LZ1g VK1Ba6aiSfzo1qhXX65KEYzo6m2Unk3/ZKj+WA4sQJQFq0YFQopuWklAGd+a7JjhXROE cdwAz21eZx3z/Fns7v5l+loBO771l6s9f8n6ZJYNa1W/2eKBJrPiBDbVO2mZ1BT7cIOH dfgt1dNZ982VZuUQO2Z+3hZvAZGICymBD9Wlw3qHVivEjLeYXFN5nTAyxA8yItQsVD1e xr90uuhEBF1gA16Bj8Mvg1SnSSvUtPeVjGTIxzrDYG34e7cjW49kY4g2Rt7faJEFYKuh 6CSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fMJL1lNI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t15-20020a170902e84f00b0015874dc3247si10553694plg.170.2022.04.22.12.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:26:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fMJL1lNI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 41F6E1CFFB1; Fri, 22 Apr 2022 11:38:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446148AbiDVJoe (ORCPT + 99 others); Fri, 22 Apr 2022 05:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353303AbiDVJod (ORCPT ); Fri, 22 Apr 2022 05:44:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A84DF44A12 for ; Fri, 22 Apr 2022 02:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650620499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=htBc+tkv2t0KCV7NxZPr1OZ70wCiPUIfu1Kk+i4HfxA=; b=fMJL1lNI/C3bZ+8ObPJoJ9isV5/17AB2tkIUZ6yJTP/syiE6BZlRrZKRzSegpdYdS7X55K XpgqDPy9Gw41JarhiJnK+QX81R5uzwctbZMFF7+czoI9OcR1yrbfQTQ9H8qhzz3tV32phT ZNludOnsRQtBOR6rLGOO6yh5YaAl/t0= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-532-b0iCcLdSOxKtT36-UOAccg-1; Fri, 22 Apr 2022 05:41:38 -0400 X-MC-Unique: b0iCcLdSOxKtT36-UOAccg-1 Received: by mail-ed1-f69.google.com with SMTP id cb11-20020a0564020b6b00b0041d870f7b3aso4683894edb.11 for ; Fri, 22 Apr 2022 02:41:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=htBc+tkv2t0KCV7NxZPr1OZ70wCiPUIfu1Kk+i4HfxA=; b=REhQ6IcNKgtBRO8GN1CaKSoW2N0PSnLxO2+YpQ0k2nZKjQwQ5Z80iUI25NmzX43s1l 4R2iO9ZqYQtMMzE3kOk4vyskgzy4KO6KuctQvaBZOtqhWOIv3jibj3DkT7cv0ml5a6DG oGwjdemhF0b2/OCzIf5GFQ4nsJWpJpRyY2A0exSxnmnfvZmYka/E41+Lqlidtj4ue16W Rhuh6Yha93kj2S0hknQye+AmMAIDHanLoSS/GDsvHrtuZuy4P+IZKi+7LwLccxKr6G3t n80lc7ZCSrwpxrbGl4Cx39nFsfS6F+Kx+YVmyYUC808TPj3kIWsxrgz2Ej/tQgpVOHat uYEg== X-Gm-Message-State: AOAM531uUIkwGof2jwxUbuvm3BNe7M+do8ZKaWxzZ09YEahf4IC/Yluj Dhs7t9XVKyWnqhzqCi/WT1f3exf/rSZ22GFjhWX1IOMbvX04UX+B9W8fKe6LNOL1uCuIsRtv4oa xGrt2FnX0d+uDuc0PJm8wpfMr X-Received: by 2002:a05:6402:330a:b0:41d:9477:4ee4 with SMTP id e10-20020a056402330a00b0041d94774ee4mr3858046eda.41.1650620497310; Fri, 22 Apr 2022 02:41:37 -0700 (PDT) X-Received: by 2002:a05:6402:330a:b0:41d:9477:4ee4 with SMTP id e10-20020a056402330a00b0041d94774ee4mr3858034eda.41.1650620497057; Fri, 22 Apr 2022 02:41:37 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id y14-20020a056402440e00b00416046b623csm727084eda.2.2022.04.22.02.41.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Apr 2022 02:41:36 -0700 (PDT) Message-ID: Date: Fri, 22 Apr 2022 11:41:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH 0/4] KVM: fix KVM_EXIT_SYSTEM_EVENT mess Content-Language: en-US To: Oliver Upton Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, will@kernel.org, maz@kernel.org, apatel@ventanamicro.com, atishp@rivosinc.com, seanjc@google.com, pgonda@google.com References: <20220421180443.1465634-1-pbonzini@redhat.com> From: Paolo Bonzini In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/22 09:58, Oliver Upton wrote: > Is there any way we could clean this up in 5.18 and leave the whole > ndata/data pattern for 5.19? > > IOW, for 5.18 go back and fix the padding: > > struct { > __u32 type; > __u32 pad; > __u64 flags; > } system_event; > > Then for 5.19 circle back on the data business, except use a flag bit > for it: > > struct { > __u32 type; > __u32 pad; > #define KVM_SYSTEM_EVENT_NDATA_VALID (1u << 63) > __u64 flags; > __u64 ndata; > __u64 data[16]; > } system_event; > > Where we apply that bit to system_event::flags this time instead of > ::type. Could also go the CAP route. These patches are against kvm/next, so that is already what I did. :) On the other hand right now the ARM and RISC-V flags are unusable with 32-bit userspace, so we need to fix _something_ in 5.18 as well. For your proposal, all that's missing is a 5.18 patch to add the padding. But since the flags UAPI was completely unused before 5.18 and there's no reason to inflict the different naming of fields to userspace. So I think we want to apply this UAPI change in 5.18 too. Paolo