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 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 874AFC28D13 for ; Mon, 22 Aug 2022 15:29:52 +0000 (UTC) Received: from localhost ([::1]:40572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQ9N9-0002ib-3t for qemu-devel@archiver.kernel.org; Mon, 22 Aug 2022 11:29:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ99J-0007et-18 for qemu-devel@nongnu.org; Mon, 22 Aug 2022 11:15:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:33792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ995-00050j-VC for qemu-devel@nongnu.org; Mon, 22 Aug 2022 11:15:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661181318; 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=ztKOeB8BytpGS9oJ4KOu449CuGX9ihFu6jNtz6UJJoA=; b=JlAXzn1HhUNgofaCfwOX/9ugC7Q38V8Wc6r8NXkyOSU1xhq4SilqohWvJ9+cubAhL2fjD+ doyKdSeI0Z+UUbn5mSZlFjtOv65V43drm2zHBmxdBVnHlKPXltmu5xNLs0hRb4YpGYNBJz fAG6icCF+Q2HmvsuQ3HQm9adXrQVNy8= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-662-ZxEYf1P8OsuvMZ0al5Rhig-1; Mon, 22 Aug 2022 11:00:07 -0400 X-MC-Unique: ZxEYf1P8OsuvMZ0al5Rhig-1 Received: by mail-ed1-f71.google.com with SMTP id m16-20020a056402431000b0044662a0ba2cso4272569edc.13 for ; Mon, 22 Aug 2022 08:00:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=ztKOeB8BytpGS9oJ4KOu449CuGX9ihFu6jNtz6UJJoA=; b=APxy0TTd1laplzhG/rWGniCkq+uYaCwcKCp4r1kO4DE4LlHDnP0Xc3SzP4yzujVZxz Vb3g5r/SFCBaaAumSDS8XYUN/kux9l5Ort5BBIJxmGfsh83adEsjbgqD4q1zm22H9PSU ibz2frj5C7xTWHTuyR1b4K2FTpg0fWgPQTEo9N2n2Q4GHSZAYiZwfvXtT1AfaAwxJAMH z7Cpbw1+ZHggoNVQ9sNzhdvczOLkHlBpYl7jFd430gdy+4Typ6mfiKfLMZXWbKZmDqif Pf+URQgQUgCOASBWWz2hkkL8zjYwMeXSFbwDx+Ncz7lr2kg+l7vObEy1Vic4UGYLV1xc fDzw== X-Gm-Message-State: ACgBeo0ltyBaOLqUwxUEaWS0V7Ru5+ScJ6LeuY6OHr06fjblm380DzfP /xaVmhAlFP76Okc/BpGWa5iPy9WjCeo8AhZpci8tZjyfAftEWtQFB67tB4tkD+2gmESrHydzOOz rsKiJSNobLRL10Wk= X-Received: by 2002:a05:6402:2755:b0:43d:7568:c78e with SMTP id z21-20020a056402275500b0043d7568c78emr16839843edd.104.1661180406449; Mon, 22 Aug 2022 08:00:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Px/A3k/BhgO3tcIds2Ce5YHxwTCTCoZ5Kl0BNrakOcDOMdhCTB5Ff2bXe4/Mdn29r6hJ22g== X-Received: by 2002:a05:6402:2755:b0:43d:7568:c78e with SMTP id z21-20020a056402275500b0043d7568c78emr16839821edd.104.1661180406202; Mon, 22 Aug 2022 08:00:06 -0700 (PDT) Received: from [10.43.2.39] (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id j7-20020aa7c407000000b004465d1db765sm5516295edq.89.2022.08.22.08.00.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Aug 2022 08:00:05 -0700 (PDT) Message-ID: Date: Mon, 22 Aug 2022 17:00:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v5 1/3] Update linux headers to 6.0-rc1 Content-Language: en-US To: Chenyi Qiang , Paolo Bonzini , Marcelo Tosatti , Richard Henderson , Eduardo Habkost , Xiaoyao Li Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org References: <20220817020845.21855-1-chenyi.qiang@intel.com> <20220817020845.21855-2-chenyi.qiang@intel.com> From: =?UTF-8?B?TWljaGFsIFByw612b3puw61r?= In-Reply-To: <20220817020845.21855-2-chenyi.qiang@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.133.124; envelope-from=mprivozn@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 8/17/22 04:08, Chenyi Qiang wrote: > commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 >=20 > Signed-off-by: Chenyi Qiang > --- > include/standard-headers/asm-x86/bootparam.h | 7 +- > include/standard-headers/drm/drm_fourcc.h | 73 +++++++- > include/standard-headers/linux/ethtool.h | 29 +-- > include/standard-headers/linux/input.h | 12 +- > include/standard-headers/linux/pci_regs.h | 30 ++- > include/standard-headers/linux/vhost_types.h | 17 +- > include/standard-headers/linux/virtio_9p.h | 2 +- > .../standard-headers/linux/virtio_config.h | 7 +- > include/standard-headers/linux/virtio_ids.h | 14 +- > include/standard-headers/linux/virtio_net.h | 34 +++- > include/standard-headers/linux/virtio_pci.h | 2 + > linux-headers/asm-arm64/kvm.h | 27 +++ > linux-headers/asm-generic/unistd.h | 4 +- > linux-headers/asm-riscv/kvm.h | 22 +++ > linux-headers/asm-riscv/unistd.h | 3 +- > linux-headers/asm-s390/kvm.h | 1 + > linux-headers/asm-x86/kvm.h | 33 ++-- > linux-headers/asm-x86/mman.h | 14 -- > linux-headers/linux/kvm.h | 172 +++++++++++++++++-= > linux-headers/linux/userfaultfd.h | 10 +- > linux-headers/linux/vduse.h | 47 +++++ > linux-headers/linux/vfio.h | 4 +- > linux-headers/linux/vfio_zdev.h | 7 + > linux-headers/linux/vhost.h | 35 +++- > 24 files changed, 523 insertions(+), 83 deletions(-) >=20 > diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h > index bf6e96011d..46de10a809 100644 > --- a/linux-headers/asm-x86/kvm.h > +++ b/linux-headers/asm-x86/kvm.h > @@ -198,13 +198,13 @@ struct kvm_msrs { > __u32 nmsrs; /* number of msrs in entries */ > __u32 pad; > =20 > - struct kvm_msr_entry entries[0]; > + struct kvm_msr_entry entries[]; > }; > =20 I don't think it's this simple. I think this needs to go hand in hand wit= h kvm_arch_get_supported_msr_feature(). Also, this breaks clang build: clang -m64 -mcx16 -Ilibqemu-x86_64-softmmu.fa.p -I. -I.. -Itarget/i386 -I= =2E./target/i386 -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/pixman-1 = -I/usr/include/spice-server -I/usr/include/spice-1 -I/usr/include/glib-2.= 0 -I/usr/lib64/glib-2.0/include -fcolor-diagnostics -Wall -Winvalid-pch -= Werror -std=3Dgnu11 -O0 -g -isystem /home/zippy/work/qemu/qemu.git/linux-= headers -isystem linux-headers -iquote . -iquote /home/zippy/work/qemu/qe= mu.git -iquote /home/zippy/work/qemu/qemu.git/include -iquote /home/zippy= /work/qemu/qemu.git/tcg/i386 -pthread -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D= 64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwr= ite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv= -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Win= it-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels= -Wexpansion-to-defined -Wno-initializer-overrides -Wno-missing-include-d= irs -Wno-shift-negative-value -Wno-string-plus-int -Wno-typedef-redefinit= ion -Wno-tautological-type-limit-compare -Wno-psabi -fstack-protector-str= ong -O0 -ggdb -fPIE -isystem../linux-headers -isystemlinux-headers -DNEED= _CPU_H '-DCONFIG_TARGET=3D"x86_64-softmmu-config-target.h"' '-DCONFIG_DEV= ICES=3D"x86_64-softmmu-config-devices.h"' -MD -MQ libqemu-x86_64-softmmu.= fa.p/target_i386_kvm_kvm.c.o -MF libqemu-x86_64-softmmu.fa.p/target_i386_= kvm_kvm.c.o.d -o libqemu-x86_64-softmmu.fa.p/target_i386_kvm_kvm.c.o -c .= =2E/target/i386/kvm/kvm.c =2E./target/i386/kvm/kvm.c:470:25: error: field 'info' with variable size= d type 'struct kvm_msrs' not at the end of a struct or class is a GNU ext= ension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct kvm_msrs info; ^ =2E./target/i386/kvm/kvm.c:1701:27: error: field 'cpuid' with variable si= zed type 'struct kvm_cpuid2' not at the end of a struct or class is a GNU= extension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct kvm_cpuid2 cpuid; ^ =2E./target/i386/kvm/kvm.c:2868:25: error: field 'info' with variable siz= ed type 'struct kvm_msrs' not at the end of a struct or class is a GNU ex= tension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct kvm_msrs info; ^ 3 errors generated. Michal