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 A804BC433F5 for ; Fri, 27 May 2022 08:56:32 +0000 (UTC) Received: from localhost ([::1]:35810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuVln-0002SH-Kt for qemu-devel@archiver.kernel.org; Fri, 27 May 2022 04:56:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuVea-00075E-Nf for qemu-devel@nongnu.org; Fri, 27 May 2022 04:49:09 -0400 Received: from n169-110.mail.139.com ([120.232.169.110]:36141) by eggs.gnu.org with smtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuVeN-0004za-A5 for qemu-devel@nongnu.org; Fri, 27 May 2022 04:48:59 -0400 X-RM-SPAM-FLAG: 00000000 Received: from tobyliu415@139.com ( [2408:8207:245d:fe80:25be:1f1f:ff75:194d] ) by ajax-webmail-lg-appmail-02-11056 (Richmail) with HTTP; Fri, 27 May 2022 16:39:23 +0800 (CST) Date: Fri, 27 May 2022 16:39:23 +0800 (CST) From: =?utf-8?B?5YiY6L6J?= To: qemu-devel Message-ID: <2b3062908bf3bc1-00040.Richmail.00025826991472841621@139.com> Subject: HELP: I can't get whpx working on ryzen / win11 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_37989_713806396.1653640763862" X-Priority: 3 X-RM-TRANSID: 2b3062908bf3bc1-00040 X-RM-OA-ENC-TYPE: 0 X-CLIENT-INFO: X-TIMING=0&X-MASSSENT=0&X-SENSITIVE=0 X-Mailer: Richmail_Webapp(V2.3.30) Received-SPF: pass client-ip=120.232.169.110; envelope-from=tobyliu415@139.com; helo=n169-110.mail.139.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_FONT_FACE_BAD=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" ------=_Part_37989_713806396.1653640763862 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 7bit CPU: AMD Ryzen 7 5800H Windows Version: Microsoft Windows [Version 10.0.22621.1] QEMU Versions D:\dev\qemu-toby>D:/dev/qemu/qemu-system-x86_64.exe -version QEMU emulator version 7.0.0 (v7.0.0-11902-g1d935f4a02-dirty) Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers D:\dev\qemu-toby>qemu-system-x86_64.exe --version QEMU emulator version 7.0.50 (v7.0.0-1245-g58b53669e8) Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers Tried Command Line *Same error for both version* COMMAND LINE: D:/dev/qemu-toby/qemu-system-x86_64.exe --name tQEMU --display vnc=:0 --rtc base=utc,clock=host --machine q35 --accel whpx --boot order=dc,menu=off,strict=off --cpu max --m 8G --device virtio-gpu --audiodev none,id=QEMUAudio --device intel-hda --device hda-duplex,audiodev=QEMUAudio --device virtio-net,netdev=QEMUNet --netdev user,id=QEMUNet,smb=D:/install/FPGA --blockdev driver=qcow2,node-name=QEMUDisk0,file.driver=file,file.filename=E:/VM/tqemu/myzynq.qcow2 --device virtio-blk,drive=QEMUDisk0 --cdrom E:/iso/windows7/cn_windows_7_enterprise_with_sp1_x64_dvd_u_677685.iso -drive if=pflash,format=raw,file=d:/dev/qemu/share/edk2-x86_64-code.fd -smp 4 -usb -device usb-tablet WHPX: setting APIC emulation mode in the hypervisor Windows Hypervisor Platform accelerator is operational whpx: injection failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector: 0, lost (c0350005) qemu-system-x86_64.exe: WHPX: Failed to emulate MMIO access with EmulatorReturnStatus: 2 qemu-system-x86_64.exe: WHPX: Failed to exec a virtual processor ------=_Part_37989_713806396.1653640763862 Content-Type: text/html;charset=UTF-8 Content-Transfer-Encoding: quoted-printable
CPU: AMD Ryzen 7 5800H
Windows Version: Microsoft Windows [Version 10.0.22621.1]
=

QEMU Versions

D:\d= ev\qemu-toby>D:/dev/qemu/qemu-system-x86_64.exe -version
QEMU emulator version 7.0.0 (v7.0.0-1= 1902-g1d935f4a02-dirty)
C= opyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

D:\dev\qemu-toby>qemu-system-x86_64.ex= e --version
QEMU emula= tor version 7.0.50 (v7.0.0-1245-g58b53669e8)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Pro= ject developers

=
Tried Command Line *Same error = for both version*
C= OMMAND LINE: D:/dev/qemu-toby/qemu-system-x86_64.exe --name tQEMU --display= vnc=3D:0 --rtc base=3Dutc,clock=3Dhost --machine q35 --accel whpx --boot o= rder=3Ddc,menu=3Doff,strict=3Doff --cpu max --m 8G --device virtio-gpu --au= diodev none,id=3DQEMUAudio --device intel-hda --device hda-duplex,audiodev= =3DQEMUAudio --device virtio-net,netdev=3DQEMUNet --netdev user,id=3DQEMUNe= t,smb=3DD:/install/FPGA --blockdev driver=3Dqcow2,node-name=3DQEMUDisk0,fil= e.driver=3Dfile,file.filename=3DE:/VM/tqemu/myzynq.qcow2 --device virtio-bl= k,drive=3DQEMUDisk0 --cdrom E:/iso/windows7/cn_windows_7_enterprise_with_sp= 1_x64_dvd_u_677685.iso -drive if=3Dpflash,format=3Draw,file=3Dd:/dev/qemu/s= hare/edk2-x86_64-code.fd -smp 4 -usb -device usb-tablet

WHPX: setting APIC emulation mode in the hypervisor
Windows Hypervisor Platform accelerator = is operational
whpx: inje= ction failed, MSI (0, 0) delivery: 0, dest_mode: 0, trigger mode: 0, vector= : 0, lost (c0350005)
qemu= -system-x86_64.exe: WHPX: Failed to emulate MMIO access with EmulatorReturn= Status: 2
qemu-system-x86_= 64.exe: WHPX: Failed to exec a virtual processor

------=_Part_37989_713806396.1653640763862--