Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2373819pxb; Sun, 3 Apr 2022 04:46:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQpBusBQVpUiX/aFGqkZlR2zAR5Ue+QuJ4wrHQkh/SCLuR6S2hPSJ+xbf31LA0AqmdpHlA X-Received: by 2002:a17:907:7704:b0:6cf:48ac:b4a8 with SMTP id kw4-20020a170907770400b006cf48acb4a8mr6623068ejc.305.1648986411196; Sun, 03 Apr 2022 04:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648986411; cv=none; d=google.com; s=arc-20160816; b=PyIolxPnBwJfarays6rybxnJuAh4m/zqFa1S4cik2FSeGBXXC+6dWmUaVP4QZ+0p+L diwW8Aanru8K0uUqhM9EgsqlSBDtYcZ19jy/OBm9oPQLNbY5PlT6jlKaQxHc+rPUREzf eXJ0CHPmmYxL4/UFfMGS6UDhBw9D52t5UomFkjjFTWs3qGHktZ5NGdHDYkDiNeQYofmz wD6iseVXDNVccqEHHEm6DlCpgS2hn0xpFUITHvkdUT/0e3xKrvTplnFRatILfGC/AMSu /b3Tu8f1cFj/UBjN2iQTl/e9OIsmhxo9BdKk0oWuR1jB7BqWjy9rSqqCKtzKszuhuF0e wH7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=cfmX/O2SgNnrnDuRsZx92/ld8EluHoAXxb/JiEZdT/Y=; b=BrPVLuHyj710mGzEPqLk//L/GiCQSSSBk7/MeEDfaNNucWH5DBnDqKcXG4g+4wVqKz 9+woyngypeDsU/GZKrwuL4crW7HFBzSZzc70oJtNx9ikey3bxF8cND4s7ydM/lCpb4vB ZnG0l7UNu5V4dNExNuVrP3Hy5x0AJI0BwziNw3GQ+t/H1d6vFBdQ3XZC4TySoK3HULK1 FcfdLlpHtu6nlg/vRId+X7WRM25JE66Ji9aPLvtTGiMmNFGRlbRT5rBTjMP/nbDqnN/a iOJAU9HZKGRDjMh9adsCZzdZtJJxciTdf0u7vTvFNAlN38YQQc99/sB8yRxR4mI2RLlD FFcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QqklvXK3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a17090699c700b006df76385be1si4102755ejn.129.2022.04.03.04.46.27; Sun, 03 Apr 2022 04:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QqklvXK3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351643AbiDATdP (ORCPT + 99 others); Fri, 1 Apr 2022 15:33:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233893AbiDATdO (ORCPT ); Fri, 1 Apr 2022 15:33:14 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D917F176644 for ; Fri, 1 Apr 2022 12:31:23 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id s13so5210936ljd.5 for ; Fri, 01 Apr 2022 12:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=cfmX/O2SgNnrnDuRsZx92/ld8EluHoAXxb/JiEZdT/Y=; b=QqklvXK3eJB2gidfL2DUGT6rsBXhN7MV8TJkAZqSGlznfdJyFNexILf4gVcYtwG85I rTRl4qNtiBRRdvelUgF4GkDNT1jXdcwky9ro4EsNwqBLqRyCt+UM4wpI5/TgoZ3LNU/e Zlm9TVBuT+XyBif0XuSj1RbtcYeZEsvXviSJCkDJ+akJJkGNooqVcmoFh4o4G0wQh1tE hMZaBjr+n6jY9F3ekT6SgMbh2zACpdyE082G/mabh7FdNJRzpl6SXT6FBWNtH5sVcohR 49kILWQodT141f65Ji8mFv4bHcZZLMOTmDMkc7nt1PxW1zig3hFv6pUv/RgXJEWFgRXx bDXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=cfmX/O2SgNnrnDuRsZx92/ld8EluHoAXxb/JiEZdT/Y=; b=f/545dlK+yzlgesxiTs9jDva9QPOYgHCd+biIBTw8fNF4JYS3mpgMA+ODMkvto7mjE UlDAtpEG0rfhwBYpKs02NsbQd0FtoZSaWq8ozUfyIsuWHtdynUwssZ8Pgeva17JGJ1P9 r/aEtuvbDz5eZY5p40JcI4/7I/mubZsyywKWfamLcRgpcH+3LzFNk5V96lTPRVPLdaId MeEprkK+rINErllZ35a7a/HcFem6p7YTmWBC+PEJ1m6Pltm8rzRA+oNAfos6DS+vcMUt WzA4TJRQtyMJ5fmQ0Oq0ME1QWg2lUX2G48RqPDfEiJhWFhtwfidLiOeG1g2pJoWL6eJr oVLg== X-Gm-Message-State: AOAM530FWaX6d2MX5+I2X9Rx+nDTOVnpvdn7HWZk6wRSFFB7U0ZhbIRG Pgfl0KF5VRROhdVKyfQqOeI= X-Received: by 2002:a2e:a169:0:b0:24a:fed8:d1f4 with SMTP id u9-20020a2ea169000000b0024afed8d1f4mr3760104ljl.348.1648841481945; Fri, 01 Apr 2022 12:31:21 -0700 (PDT) Received: from DESKTOPMNL9DDQ (88-115-161-74.elisa-laajakaista.fi. [88.115.161.74]) by smtp.gmail.com with ESMTPSA id g12-20020a05651222cc00b0044a1065ca5fsm323949lfu.304.2022.04.01.12.31.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2022 12:31:14 -0700 (PDT) From: To: "'Christoph Hellwig'" Cc: , , , , "'Zhi Wang'" , "'Jason Gunthorpe'" , "'Jani Nikula'" , "'Joonas Lahtinen'" , "'Vivi Rodrigo'" , "'Zhenyu Wang'" References: <20220401130207.33944-1-zhi.a.wang@intel.com> <20220401130207.33944-4-zhi.a.wang@intel.com> <20220401172216.GA21871@lst.de> In-Reply-To: <20220401172216.GA21871@lst.de> Subject: RE: [PATCH v8 3/3] i915/gvt: Use the initial HW state snapshot saved in i915 Date: Fri, 1 Apr 2022 22:31:08 +0300 Message-ID: <00e301d845ff$0ce37580$26aa6080$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJQSBcZS23vTPs7eBbLlLvOx5cHvgMe/OlPAVLjqxCrx97X0A== Content-Language: en-us X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Chirs: Thanks for the testing. I will find a kabelake and try it. :) -----Original Message----- From: Christoph Hellwig Sent: Friday, April 1, 2022 8:22 PM To: Zhi Wang Cc: dri-devel@lists.freedesktop.org; linux-kernel@vger.kernel.org; intel-gfx@lists.freedesktop.org; intel-gvt-dev@lists.freedesktop.org; Zhi Wang ; Christoph Hellwig ; Jason Gunthorpe ; Jani Nikula ; Joonas Lahtinen ; Vivi Rodrigo ; Zhenyu Wang Subject: Re: [PATCH v8 3/3] i915/gvt: Use the initial HW state snapshot saved in i915 This version still seems unhappy (same hardware as the last report): [ 38.650768] vfio_mdev 6814f392-50ac-4236-ae3d-26d472fd8aae: Adding to iommu group 0 [ 38.880317] L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details. [ 39.736514] kvm [3037]: vcpu0, guest rIP: 0xffffffff81003e6e disabled perfctr wrmsr: 0xc2 data 0xffff [ 43.387606] general protection fault, probably for non-canonical address 0xd2ff1d88269987a: 0000 [#1] PREEMPT SMP PTI [ 43.387612] CPU: 0 PID: 3050 Comm: qemu-system-x86 Tainted: G E 5.17.0+ #1296 [ 43.387615] Hardware name: LENOVO 20KH006JGE/20KH006JGE, BIOS N23ET62W (1.37 ) 02/19/2019 [ 43.387616] RIP: 0010:__x86_indirect_thunk_array+0x10/0x20 [ 43.387621] Code: 43 54 e9 13 05 c4 ff 53 43 54 e9 db 8c c4 ff 53 43 54 e9 b3 4a d1 ff 53 43 54 e8 07 00 00 00 f3 90 0f ae e8 eb f9 48 89 04 24 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 e8 07 00 00 00 f3 [ 43.387623] RSP: 0018:ffffc0214461fe10 EFLAGS: 00010286 [ 43.387626] RAX: 0d2ff1d88269987a RBX: ffff9d5808ae0000 RCX: 0000000000000004 [ 43.387627] RDX: ffffc0214461fe80 RSI: 0000000000145000 RDI: ffffc021422c3000 [ 43.387628] RBP: ffffc021422c3000 R08: 0000000000000001 R09: 00000000000a2800 [ 43.387630] R10: ffffc0214461fe80 R11: ffffc0214461fe80 R12: 0000000000000004 [ 43.387631] R13: 00000000fd145000 R14: 0000000000145000 R15: ffffc021422c3008 [ 43.387632] FS: 00007f50c5576700(0000) GS:ffff9d5b92600000(0000) knlGS:0000000000000000 [ 43.387633] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 43.387635] CR2: 0000000000000000 CR3: 0000000103de8005 CR4: 00000000003726f0 [ 43.387636] Call Trace: [ 43.387638] [ 43.387640] ? intel_vgpu_emulate_mmio_read+0xe9/0x390 [ 43.387645] ? intel_vgpu_rw.isra.0+0x1a7/0x1e0 [ 43.387648] ? intel_vgpu_read+0x15c/0x200 [ 43.387650] ? vfs_read+0x9b/0x190 [ 43.387655] ? __x64_sys_pread64+0x8d/0xc0 [ 43.387658] ? do_syscall_64+0x3b/0x90 [ 43.387661] ? entry_SYSCALL_64_after_hwframe+0x44/0xae [ 43.387664] [ 43.387665] Modules linked in: cmac(E) ctr(E) ccm(E) rfcomm(E) sd_mod(E) sg(E) uvcvideo(E) videobuf2_vmalloc(E) videobuf2_memops(E) videobuf2_v4l2(E) videobuf2_common(E) btusb(E) videodev(E) btrtl(E) btbcm(E) btintel(E) mc(E) uas(E) usb_storage(E) scsi_mod(E) scsi_common(E) bnep(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) bluetooth(E) crc16(E) jitterentropy_rng(E) sha512_generic(E) coretemp(E) drbg(E) crc32_pclmul(E) ansi_cprng(E) ecdh_generic(E) ghash_clmulni_intel(E) ecc(E) wmi_bmof(E) intel_wmi_thunderbolt(E) intel_rapl_msr(E) joydev(E) aesni_intel(E) iwlmvm(E) libaes(E) snd_soc_skl(E) snd_soc_hdac_hda(E) crypto_simd(E) snd_ctl_led(E) snd_hda_ext_core(E) snd_soc_core(E) cryptd(E) snd_soc_acpi_intel_match(E) snd_soc_acpi(E) mac80211(E) snd_hda_codec_realtek(E) snd_soc_sst_ipc(E) snd_hda_codec_generic(E) snd_soc_sst_dsp(E) kvm_intel(E) libarc4(E) intel_cstate(E) snd_hda_intel(E) iwlwifi(E) snd_intel_dspcfg(E) intel_uncore(E) snd_hda_codec(E) pcspkr(E) [ 43.387700] serio_raw(E) snd_hwdep(E) iTCO_wdt(E) efi_pstore(E) iTCO_vendor_support(E) snd_hda_core(E) tpm_crb(E) watchdog(E) thinkpad_acpi(E) snd_pcm(E) nvram(E) processor_thermal_device_pci_legacy(E) intel_soc_dts_iosf(E) ledtrig_audio(E) cfg80211(E) snd_timer(E) processor_thermal_device(E) platform_profile(E) tpm_tis(E) processor_thermal_rfim(E) processor_thermal_mbox(E) tpm_tis_core(E) snd(E) mei_me(E) ucsi_acpi(E) processor_thermal_rapl(E) tpm(E) typec_ucsi(E) soundcore(E) int3403_thermal(E) intel_rapl_common(E) mei(E) intel_pch_thermal(E) typec(E) rng_core(E) wmi(E) int340x_thermal_zone(E) rfkill(E) ac(E) battery(E) int3400_thermal(E) acpi_thermal_rel(E) evdev(E) acpi_pad(E) parport_pc(E) ppdev(E) lp(E) parport(E) efivarfs(E) ip_tables(E) x_tables(E) autofs4(E) i2c_designware_platform(E) i2c_designware_core(E) e1000e(E) nvme(E) xhci_pci(E) crc32c_intel(E) ptp(E) nvme_core(E) xhci_hcd(E) psmouse(E) t10_pi(E) i2c_i801(E) pps_core(E) i2c_smbus(E) thunderbolt(E) usbcore(E) [ 43.387733] crc64_rocksoft(E) crc64(E) crc_t10dif(E) crct10dif_generic(E) intel_lpss_pci(E) crct10dif_pclmul(E) crct10dif_common(E) intel_lpss(E) idma64(E) usb_common(E) mfd_core(E) [ 43.387741] ---[ end trace 0000000000000000 ]---