Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2388859ybl; Sat, 1 Feb 2020 20:57:58 -0800 (PST) X-Google-Smtp-Source: APXvYqx34hijXr8l6YSl4FeXq3JPmaEU724x19zeBJL+O0ZmIZogZ7jE0ytQlOqQ7jQXkeEvEbeR X-Received: by 2002:a05:6808:312:: with SMTP id i18mr11449897oie.44.1580619478229; Sat, 01 Feb 2020 20:57:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580619478; cv=pass; d=google.com; s=arc-20160816; b=a2zrIjG5fDr4wUeKQ7bRuRQ1yb0ZIEn57Ok/CckwUd8pZzEUd7i8XOrTgoftXU86sT P/5DA7KMHUAel7Qzum7iZULbtLDbjD9iZJbwqt5Lt+zKU19r1bJxqntyS1wjN4mtO1cj 0xfK5bd8g0n1vGMEVO9sRHu2JnUTQ5xgskF5qrleDfQ1qzGJOz6JWvo2uJMP8ZHM/KOM vZME9ANjHAySskyEIlvJiSNTYEQsXvGIRKfSvaQKWOnZwvOhaoMdI1ov+UybFNPB+TMk VH06fyOGZ2Yj2WHhRXHp7AobwW9OK0l+jwdeTDsxHbfVItF9LWx4y3M/giqyLFbeaa26 vZ/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=PuHiAg/0Ph8JtzhyrNgO0/av6VnylNCTxiiKjXywG1g=; b=o5mOouYR80RanY/lQb8Tj0IpWKAuJx4Wn3U1tOV8Z/FncZ3aetlTezGLhBgtImgjIg B/MhOTlVpsdouNIHiBh68rLYdRyfNoyXbwAG5dmli5HIvzwx1Wvwq5ppymT7dg7NC1rW sA77zilhf6odbLjog7jzCQYAGuHEduGvYXGsHZHELCmiYDQ+O+qDf6QN4ISO9GSwWvFQ a2M0N1S9Xcy86FxT3rI6M8NagVhZwQLjCDHcQmW4kwOdCL/l7edv36EIgwCJJ5AEucuR B8zc6J5F89ZgHK5Ynq70dM6kKXb1mJekBVRfL4af4fCagtqGYdle3CO7yVHiVfU8yry4 rTYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@teoenmingcorp.onmicrosoft.com header.s=selector2-teoenmingcorp-onmicrosoft-com header.b="cCmg/sAa"; arc=pass (i=1 spf=pass spfdomain=teo-en-ming-corp.com dkim=pass dkdomain=teo-en-ming-corp.com dmarc=pass fromdomain=teo-en-ming-corp.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 y8si6687942oih.141.2020.02.01.20.57.32; Sat, 01 Feb 2020 20:57:58 -0800 (PST) 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; dkim=pass header.i=@teoenmingcorp.onmicrosoft.com header.s=selector2-teoenmingcorp-onmicrosoft-com header.b="cCmg/sAa"; arc=pass (i=1 spf=pass spfdomain=teo-en-ming-corp.com dkim=pass dkdomain=teo-en-ming-corp.com dmarc=pass fromdomain=teo-en-ming-corp.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 S1726836AbgBBExw (ORCPT + 99 others); Sat, 1 Feb 2020 23:53:52 -0500 Received: from mail-eopbgr1310081.outbound.protection.outlook.com ([40.107.131.81]:62816 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726794AbgBBExw (ORCPT ); Sat, 1 Feb 2020 23:53:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bHwc7AK7v2mmLYJCWysjHkynimPAtf/87BhH0dv31f83x3d5873mGybXlkx5slVR9pv3G6kMsG4PmqM4esbNv6cTkR60DSrg9Fs8il9DGDxeu/09+r6XbkzLk7gbw+UpHQ7UkVEme256zZZpsIf9SFpSAnD8AR3hid5fCgbOv+srPlmxdJDM0UQNYHOHRF3nqjKOct39tdNCvenV9VvggAgSca0SEsGePFjoL07M+W6TzQAmAWfETHA7RjMzysCCJgeo8qzm9JF1lKKjX1Wk2JY3Kq79mfax/L7LF6WxZXxN6FlCUFcU/DO1bb1ub7FCHhFiiKxgaumlkK5OAxR7LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PuHiAg/0Ph8JtzhyrNgO0/av6VnylNCTxiiKjXywG1g=; b=UIND2ARG7g7OAYisCV6OpBgnTR3lXD2odFgv0Exf+VmepLkth9XVZKBvxTRNLN8dcjr4NumRtCu9N8TamHUWfdiolX0ZgCERhq2zbKOQnSkJw9OnfSltBiUS7y+Fv0sHFEOyF+85TX+FjhCQE1C26fIlAeDYWZ9pe6NCi4cxPTqtqUMq7KuoH0tZEqiRsn6WXMa52G2mCTN/tsEQpn35mR7p8PX2d2giT5eRiF7s7W5LzKt2UqkSLRXxbN9x0qJMbxDqs231BsnDFxswepVtk7imbz7ArtEE2ESVJpewbGuevILrRG/bQChFeGnU03/bY0utNRWnQFrqbGJae+wfvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=teo-en-ming-corp.com; dmarc=pass action=none header.from=teo-en-ming-corp.com; dkim=pass header.d=teo-en-ming-corp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teoenmingcorp.onmicrosoft.com; s=selector2-teoenmingcorp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PuHiAg/0Ph8JtzhyrNgO0/av6VnylNCTxiiKjXywG1g=; b=cCmg/sAaXlxGLY12DY/ol4bv/dkpvOmh6Mxq3VXYH/uVA//trYZc7ICPcW4ktKrsUcOC3v5/1X/32fSTZBJ9oyyMZirkflDFolZbgzSE2RX7KtogfWCByJysavmEWwk1TjZfE9m6RxkwfJds5/Oas/spoDQC24I4nrawCzgscwo= Received: from SG2PR01MB2141.apcprd01.prod.exchangelabs.com (10.170.143.19) by SG2PR01MB3032.apcprd01.prod.exchangelabs.com (20.177.93.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.28; Sun, 2 Feb 2020 04:53:43 +0000 Received: from SG2PR01MB2141.apcprd01.prod.exchangelabs.com ([fe80::81e9:67b1:74eb:2853]) by SG2PR01MB2141.apcprd01.prod.exchangelabs.com ([fe80::81e9:67b1:74eb:2853%3]) with mapi id 15.20.2686.031; Sun, 2 Feb 2020 04:53:43 +0000 From: Turritopsis Dohrnii Teo En Ming To: linux-kernel CC: Turritopsis Dohrnii Teo En Ming Subject: [FAILURE] GPU/VGA Passthrough of NVidia GeForce GTX1650 to Windows 10 VM using Linux KVM on Ubuntu 18.04.3 LTS Desktop Edition Thread-Topic: [FAILURE] GPU/VGA Passthrough of NVidia GeForce GTX1650 to Windows 10 VM using Linux KVM on Ubuntu 18.04.3 LTS Desktop Edition Thread-Index: AdXZQY37Bqq68GgMQw63KtR/DicHFA== Date: Sun, 2 Feb 2020 04:53:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ceo@teo-en-ming-corp.com; x-originating-ip: [2401:7400:c802:de67:f090:52:a7e0:3c9b] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bd3f05d4-7550-41a0-62a0-08d7a79be0e4 x-ms-traffictypediagnostic: SG2PR01MB3032: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0301360BF5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6029001)(39830400003)(346002)(396003)(366004)(376002)(136003)(189003)(199004)(186003)(316002)(16799955002)(30864003)(33656002)(45080400002)(6916009)(6506007)(4326008)(55016002)(5660300002)(2906002)(107886003)(9686003)(52536014)(71200400001)(86362001)(966005)(8676002)(76116006)(508600001)(7696005)(81166006)(66446008)(81156014)(66476007)(8936002)(66556008)(66946007)(64756008)(21314003)(473944003)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:SG2PR01MB3032;H:SG2PR01MB2141.apcprd01.prod.exchangelabs.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: teo-en-ming-corp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: f47lLxi+e2TuWa8KnWnbAy+XSV/xY81hxtnfqrbAeRwy9xTPKxBs2lgd+rd6++EKFDS1tNQ/KQaPFKDznR1YYvAnWao6JjwAC/iPu9FSqOS/JZkMF0C41kK7hANQVZPTlf41mv7ywQU/rx4St/3hKa5F9v86awaWQaihYD55pIxdB5nwZyzCP1ZAIugbiD4lRatUQFwTUI0svtokn1ZK5CgUYUe6qIR1zH6XAfCZYT+ob8gzwrq2s/BdeoqUF55jCoF3oxfkYvKMzMzDlIG6XrXVRXuUPKJ0sGNrSE21gz8R3XSUqYs+/UJ5mw9fRC/kwQ10J5escbZNeBmh7Vr/sysBjKpzJ6JWdBGG7AsNYYNKk3sM1LMrjADVLL8KBPvNUaraujrUsFJyjpA+qLsPHKcsIZIDH6LmcTkaFgnszBgPUxZKgxYrrNw2XwUKX/H/XOQisS+iILxQ+ii6VOpgZ2QTjITwYymtpk+IVGv7ym3r4YYy0BdzJMalTw0IpGmv190Tjn47xlbmRO5BMB4hGeGWcio9xxmZcQ7xgJ1GXB7kjK01ImLg1d9GXpMWYYriE9I7yUmgOWS0NJsPHUTAwXEJqsDAdlD7sPb3kaukkTShJ6jT0Fo3cmTvWTiB8gQ7 x-ms-exchange-antispam-messagedata: rcLCqPmCYArDMuwY+bfsXtVh2a9xWM7UOqESSL352oYGXOBnCSELgrLEjO3ZPOtexN2JsH6DSm9MW7hpIIjN+nXNAMPSz1XILsyUfHorQSf61to9Ba1W5buE0Ero1qtx7R9MadZsz/c2/QKKUv4n8wsvWSRMQuu0SVHF/in3cPXK+L0WF+ScyVfyP0Oq2tVCuhLwTIlf6JOPw9kcT+sVag== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: teo-en-ming-corp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd3f05d4-7550-41a0-62a0-08d7a79be0e4 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2020 04:53:42.6480 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 23b3f6ae-c453-4b93-aec9-f17508e5885c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: enPhp6vP2erCtdymMnW2oTcCIxL170cmxQqWL3Sx3t/glVzuGtMURzB75HSZxLg13HNoMrDu5v0+JBydTJnt5eRZYrcQIQyl1ybvrpKdfEA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR01MB3032 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Primary Subject: [FAILURE] GPU/VGA Passthrough of NVidia GeForce GTX1650 to= Windows 10 VM using Linux KVM on Ubuntu 18.04.3 LTS Desktop Edition Secondary Subject: Mr. Turritopsis Dohrnii Teo En Ming's Linux KVM GPU Pass= through Project, Started 1st Feb 2020 Saturday late night before midnight REFERENCE =3D=3D=3D=3D=3D=3D=3D=3D=3D Heiko Sieger's blog: Running Windows 10 on Linux using KVM with VGA Passthr= ough Link: https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-= vga-passthrough/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I am following Heiko Sieger's guide because I think it is very well written= and very well explained. Good job! I need to come up with this guide for myself because the home desktop compu= ter which I have is specific and unique to me. Turritopsis Dohrnii Teo En Ming's home desktop computer technical specifica= tions: [1] Processor: AMD Ryzen 3 3200G with Radeon Vega 8 Graphics, 4 Cores, 4 Th= reads, 4.0 GHz Max Boost, 3.6 GHz Base [2] Motherboard: Gigabyte B450M DS3H rev 1.0 Socket AM4 (BIOS Version: F41,= BIOS Date: 07/22/2019, BIOS ID: 8A16BG05) [3] Memory: 8 GB Transcend DDR4-2666 [4] Integrated Graphics Device (IGD): AMD Radeon Vega 8 Graphics (for Linux= host) [5] Discrete GPU on PCIe Slot 1: MSI GeForce GTX1650 Ventus XS OC Edition 4= GB GDDR5 (for Windows 10 version 1909 virtual machine) [6] Solid State Disk (SSD): 256 GB Transcend SSD (bare-metal Windows 10 ver= sion 1909 installation) [7] Harddisk (HDD): Seagate Barracude 1 TB 3.5" Internal SATA (for installi= ng Ubuntu 18.04.3 LTS Desktop host) DETAILED INSTRUCTIONS =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Download ubuntu-18.04.3-desktop-amd64.iso from ubuntu.com (official website= ) and burn it to a USB thumb drive using Universal USB Installer 1.9.9.0=20 from Pendrivelinux.com Reboot computer. Press DELETE to go into BIOS Setup. Use the CLASSIC BIOS Interface. Peripherals > Initial Display Output: IGD Video (Onboard Graphics) M.I.T. > Advanced Frequency Settings > Advanced CPU Settings > SVM Mode: En= abled BIOS > Storage Boot Option Control: UEFI Only BIOS > Other PCI Device ROM Priority: UEFI Only Save BIOS settings and Exit. Press F12 to go into Boot Menu. Select the USB thumb drive containing Ubuntu 18.04.3 LTS (UEFI). Select "Try Ubuntu without installing". Double click "Install Ubuntu 18.04.3 LTS". Welcome: English Keyboard layout: English (US) Select "Normal installation". Uncheck "Download updates while installing Ubuntu". Uncheck "Install third-party software for graphics and Wi-Fi hardware and a= dditional media formats". Select "Erase disk and install Ubuntu". Uncheck "Encrypt the new Ubuntu installation for security". Uncheck "Use LVM with the new Ubuntu installation". Select drive: SCSI1 (0,0,0) (sda) - 1.0 TB ATA ST1000DM010-2EP1 (Seagate Ba= rracuda). Click Install Now. Write the changes to disks? Continue. Where are you? Singapore. Your name: Turritopsis Dohrnii Teo En Ming Your computer's name: ubuntu18043 Pick a username: teo-en-ming Installation Complete: Click Restart Now. Press F12 to go into Boot Menu. Select ubuntu (Seagate 1 TB HDD). Linux command: sudo nano /etc/default/grub Contents of file: # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=3D0 GRUB_TIMEOUT_STYLE=3Dhidden GRUB_TIMEOUT=3D10 GRUB_DISTRIBUTOR=3D`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT=3D"quiet splash amd_iommu=3Don" GRUB_CMDLINE_LINUX=3D"" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtain= s # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM=3D"0x01234567,0xfefefefe,0x89abcdef,0xefefefef" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=3Dconsole # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=3D640x480 # Uncomment if you don't want GRUB to pass "root=3DUUID=3Dxxx" parameter to= Linux #GRUB_DISABLE_LINUX_UUID=3Dtrue # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY=3D"true" # Uncomment to get a beep at grub start #GRUB_INIT_TUNE=3D"480 440 1" Linux command: sudo update-grub Output: Sourcing file `/etc/default/grub' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.3.0-28-generic Found initrd image: /boot/initrd.img-5.3.0-28-generic Found linux image: /boot/vmlinuz-5.0.0-23-generic Found initrd image: /boot/initrd.img-5.0.0-23-generic Found Windows Boot Manager on /dev/sdc2@/efi/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for EFI firmware configuration done Reboot the computer. Linux command: sudo reboot Linux command: dmesg | grep AMD-Vi Output: [ 0.572129] pci 0000:00:00.2: AMD-Vi: Unable to write to IOMMU perf coun= ter. [ 0.576192] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40 [ 0.576193] pci 0000:00:00.2: AMD-Vi: Extended features (0x4f77ef22294ad= a): [ 0.576195] AMD-Vi: Interrupt remapping enabled [ 0.576195] AMD-Vi: Virtual APIC enabled [ 0.576368] AMD-Vi: Lazy IO/TLB flushing enabled [ 10.432967] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel Linux command: cat /proc/cpuinfo | grep svm Output: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtsc= p lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pn= i pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx= f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignss= e 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext p= erfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx= 2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsave= s clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_= clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmloa= d vgif overflow_recov succor smca flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtsc= p lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pn= i pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx= f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignss= e 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext p= erfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx= 2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsave= s clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_= clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmloa= d vgif overflow_recov succor smca flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtsc= p lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pn= i pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx= f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignss= e 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext p= erfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx= 2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsave= s clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_= clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmloa= d vgif overflow_recov succor smca flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat = pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtsc= p lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pn= i pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx= f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignss= e 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext p= erfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx= 2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsave= s clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_= clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmloa= d vgif overflow_recov succor smca Linux command: sudo apt install qemu-kvm qemu-utils seabios ovmf hugepages = cpu-checker Linux command: lspci | grep VGA Output: 01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f82 (rev a1) 07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] P= icasso (rev c9) Linux command: lspci -nn | grep 01:00. Output: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1= f82] (rev a1) 01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1) Bus numbers of NVidia GeForce GTX1650 GPU: 01:00.0 01:00.1 PCI IDs of NVidia GeForce GTX1650 GPU: 10de:1f82 10de:10fa Linux command: for a in /sys/kernel/iommu_groups/*; do find $a -type l; don= e | sort --version-sort Output: /sys/kernel/iommu_groups/7/devices/0000:01:00.0 /sys/kernel/iommu_groups/7/devices/0000:01:00.1 IOMMU Group: 7 Linux command: lsusb Output: Bus 001 Device 005: ID 0603:00f2 Novatek Microelectronics Corp. Keyboard (L= abtec Ultra Flat Keyboard) Bus 001 Device 004: ID 056e:0107 Elecom Co., Ltd (wireless optical mouse) Linux command: cat /sys/bus/pci/devices/0000:01:00.0/modalias Output: pci:v000010DEd00001F82sv00001462sd00008D92bc03sc00i00 Linux command: cat /sys/bus/pci/devices/0000:01:00.1/modalias Output: pci:v000010DEd000010FAsv00001462sd00008D92bc04sc03i00 Linux command: sudo nano /etc/modprobe.d/local.conf Contents of file: alias pci:v000010DEd00001F82sv00001462sd00008D92bc03sc00i00 vfio-pci alias pci:v000010DEd000010FAsv00001462sd00008D92bc04sc03i00 vfio-pci options vfio-pci ids=3D10de:1f82,10de:10fa options vfio-pci disable_vga=3D1 Linux command: sudo nano /etc/modprobe.d/kvm.conf Contents of file: options kvm ignore_msrs=3D1 Linux command: sudo nano /etc/initramfs-tools/modules Contents of file: vfio vfio_iommu_type1 vfio_pci vfio_virqfd vhost-net Linux command: sudo update-initramfs -u Output: update-initramfs: Generating /boot/initrd.img-5.3.0-28-generic I will configure bridge networking much later, after GPU Passthrough is suc= cessful. GPU Passthrough is top priority. I must get it to work first. REFERENCE =3D=3D=3D=3D=3D=3D=3D=3D=3D Link: https://heiko-sieger.info/define-a-network-bridge-using-ubuntus-linux= -mints-network-manager-application/ Download the latest VFIO drivers from https://fedorapeople.org/groups/virt/= virtio-win/direct-downloads/latest-virtio/virtio-win.iso Linux command: fallocate -l 250G /home/teo-en-ming/win10.img Linux command: kvm-ok Output: INFO: /dev/kvm exists KVM acceleration can be used Linux command: lsmod | grep kvm Output: kvm_amd 94208 0 ccp 86016 1 kvm_amd kvm 651264 1 kvm_amd irqbypass 16384 1 kvm Reboot the computer. Linux command: sudo reboot Linux command: lsmod | grep kvm Output: kvm_amd 94208 0 ccp 86016 1 kvm_amd kvm 651264 1 kvm_amd irqbypass 16384 2 vfio_pci,kvm Linux command: lsmod | grep vfio Output: vfio_pci 49152 0 irqbypass 16384 2 vfio_pci,kvm vfio_virqfd 16384 1 vfio_pci vfio_iommu_type1 28672 0 vfio 32768 2 vfio_iommu_type1,vfio_pci Linux command: qemu-system-x86_64 --version Output: QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.21) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers Linux command: lspci -kn | grep -A 2 01:00 Output: 01:00.0 0300: 10de:1f82 (rev a1) Subsystem: 1462:8d92 Kernel driver in use: vfio-pci -- 01:00.1 0403: 10de:10fa (rev a1) Subsystem: 1462:8d92 Kernel driver in use: vfio-pci Kernel driver in use is vfio-pci. It worked! Linux command: dmesg | grep VFIO Output: [ 2.808675] VFIO - User Level meta-driver version: 0.3 Create Script to Start Windows 10 Virtual Machine with GPU Passthrough =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Linux command: sudo nano windows10vm.sh Contents of file: #!/bin/bash vmname=3D"windows10vm" if ps -ef | grep qemu-system-x86_64 | grep -q multifunction=3Don; then echo "A passthrough VM is already running." & exit 1 else # use pulseaudio export QEMU_AUDIO_DRV=3Dpa export QEMU_PA_SAMPLES=3D8192 export QEMU_AUDIO_TIMER_PERIOD=3D99 export QEMU_PA_SERVER=3D/run/user/1000/pulse/native cp /usr/share/OVMF/OVMF_VARS.fd /tmp/my_vars.fd qemu-system-x86_64 \ -name $vmname,process=3D$vmname \ -machine type=3Dpc,accel=3Dkvm \ -cpu host,kvm=3Doff \ -smp 3,sockets=3D1,cores=3D3,threads=3D1 \ -m 4G \ -balloon none \ -rtc clock=3Dhost,base=3Dlocaltime \ -serial none \ -parallel none \ -soundhw hda \ -usb \ -device usb-host,vendorid=3D0x0603,productid=3D0x00f2 \ -device usb-host,vendorid=3D0x056e,productid=3D0x0107 \ -device vfio-pci,host=3D01:00.0,multifunction=3Don \ -device vfio-pci,host=3D01:00.1 \ -drive if=3Dpflash,format=3Draw,readonly,file=3D/usr/share/OVMF/OVMF_CODE.f= d \ -drive if=3Dpflash,format=3Draw,file=3D/tmp/my_vars.fd \ -boot order=3Ddc \ -drive id=3Ddisk0,if=3Dvirtio,cache=3Dnone,format=3Draw,file=3D/home/teo-en= -ming/win10.img \ -drive file=3D/home/teo-en-ming/win10-1809.iso,index=3D1,media=3Dcdrom \ -drive file=3D/home/teo-en-ming/Downloads/virtio-win-0.1.173.iso,index=3D2,= media=3Dcdrom=20 #-netdev type=3Dtap,id=3Dnet0,ifname=3Dvmtap0,vhost=3Don \ #-device virtio-net-pci,netdev=3Dnet0,mac=3D00:16:3e:00:01:01 #-vga none \ #-nographic \ exit 0 fi Linux command: sudo chmod +x windows10vm.sh Linux command: sudo ./windows10vm.sh Temporarily paused doing work at 2:41 AM in the morning on 2nd Feb 2020 Sun= day. Instructions for AMD Ryzen platforms =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Link: https://forums.linuxmint.com/viewtopic.php?f=3D231&t=3D212692&p=3D134= 0482#p1340482 Linux command: sudo add-apt-repository ppa:jacob/virtualisation Uninstall qemu 2.11.1. Linux command: sudo apt-get remove qemu-kvm qemu-utils Install qemu 2.12 Linux command: sudo apt install qemu-kvm qemu-utils ERROR: Windows 10 virtual machine keeps showing BSOD with IRQL NOT LESS OR = EQUAL Stop Code. By the way, I am able to see the Tiano Core screen.=20 No matter what variables I play with in the shell script to start Windows 1= 0 VM,=20 I always get BSOD IRQL NOT LESS OR EQUAL Stop Code. I am running out of opt= ions already. Please give me suggestions. Questions =3D=3D=3D=3D=3D=3D=3D=3D=3D [1] Is MSI GeForce GTX1650 4 GB GDDR5 GPU not supported by Linux KVM for GP= U Passthrough? [2] Do I need to upgrade the BIOS of my Gigabyte B450M DS3H Socket AM4 moth= erboard? I fear bricking my motherboard. It is a risky operation. [3] Are there any other workarounds that I have to do for AMD Ryzen 3000 se= ries platform, in order to get GPU Passthrough to work? I am looking forward to your replies. Thank you very much! Stopped troubleshooting at 5.19 AM Singapore Time on 2 Feb 2020 Sunday and = went to sleep. -----BEGIN EMAIL SIGNATURE----- The Gospel for all Targeted Individuals (TIs): [The New York Times] Microwave Weapons Are Prime Suspect in Ills of U.S. Embassy Workers Link:=A0https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microw= ave.html ***************************************************************************= ***************** Singaporean Mr. Turritopsis Dohrnii Teo En Ming's Academic Qualifications as at 14 Feb 2019 and refugee seeking attempts at the United= Nations Refugee Agency Bangkok (21 Mar 2017), in Taiwan (5 Aug 2019) and A= ustralia (25 Dec 2019 to 9 Jan 2020): [1]=A0https://tdtemcerts.wordpress.com/ [2]=A0https://tdtemcerts.blogspot.sg/ [3]=A0https://www.scribd.com/user/270125049/Teo-En-Ming -----END EMAIL SIGNATURE-----