Re: [PATCH] i386/kvm: Set return value after handling KVM_EXIT_HYPERCALL

2024-12-11 Thread Yao Yuan
On Thu, Dec 12, 2024 at 11:26:28AM +0800, Binbin Wu wrote: > Userspace should set the ret field of hypercall after handling > KVM_EXIT_HYPERCALL. Otherwise, a stale value could be returned to KVM. > > Fixes: 47e76d03b15 ("i386/kvm: Add KVM_EXIT_HYPERCALL handling for > KVM_HC_MAP_GPA_RANGE") > Re

loongson3-virt machine does not support if=ide,bus=0,unit=0

2022-09-20 Thread YAO YUAN
I create the disk with qemu-img create -f qcow2 zbkylin_mips64el.img 50G Then, start the machine with qemu-system-mips64el -M loongson3-virt -bios pmon-3avirt.bin -hda zbkylin_mips64el.img And get the following error. qemu-system-mips64el: -hda zbkylin_mips64el.img: machine type does not support

RE: [PATCH 1/1] i386/monitor: Fix page table walking issue for LA57 enabled guest

2022-06-23 Thread Yao, Yuan
>-Original Message- >From: Zhang, Chen >Sent: Friday, June 24, 2022 10:04 >To: Yao, Yuan ; Paolo Bonzini ; >Philippe Mathieu-Daudé ; Dr. >David Alan Gilbert ; Zhong, Yang ; >Connor Kuehl ; Eric >Blake ; Markus Armbruster >Cc: qemu-devel@nongnu.org;

RE: [PATCH 1/1] i386/monitor: Fix page table walking issue for LA57 enabled guest

2022-06-23 Thread Yao, Yuan
>-Original Message- >From: Markus Armbruster >Sent: Friday, June 24, 2022 13:35 >To: Yao, Yuan >Cc: Paolo Bonzini ; Philippe Mathieu-Daudé >; Dr. David Alan Gilbert >; Zhong, Yang ; Connor Kuehl >; qemu-devel@nongnu.org; >Yamahata, Isaku >Subject: Re:

Re: [PATCH v3 kvm/queue 05/16] KVM: Maintain ofs_tree for fast memslot lookup by file offset

2021-12-27 Thread Yao Yuan
On Fri, Dec 24, 2021 at 11:54:18AM +0800, Chao Peng wrote: > On Thu, Dec 23, 2021 at 06:02:33PM +, Sean Christopherson wrote: > > On Thu, Dec 23, 2021, Chao Peng wrote: > > > Similar to hva_tree for hva range, maintain interval tree ofs_tree for > > > offset range of a fd-based memslot so the l

Re: [RFC v2 PATCH 07/13] KVM: Handle page fault for fd based memslot

2021-11-20 Thread Yao Yuan
On Fri, Nov 19, 2021 at 09:47:33PM +0800, Chao Peng wrote: > Current code assume the private memory is persistent and KVM can check > with backing store to see if private memory exists at the same address > by calling get_pfn(alloc=false). > > Signed-off-by: Yu Zhang > Signed-off-by: Chao Peng >

RE: [RFC][PATCH v1 00/10] Enable encrypted guest memory access in QEMU

2021-09-02 Thread Yao, Yuan
Yamahata, Isaku >; k...@vger.kernel.org; >m...@redhat.com; mtosa...@redhat.com; pbonz...@redhat.com; >qemu-devel@nongnu.org; Yao, Yuan > >Subject: [RFC][PATCH v1 00/10] Enable encrypted guest memory access in QEMU > >> - We introduce another new vm level ioctl focus o