Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-23 Thread Ralf Ramsauer
On 21/03/2022 21:47, Palmer Dabbelt wrote: On Sun, 20 Mar 2022 22:43:07 PDT (-0700), alistai...@gmail.com wrote: On Thu, Mar 17, 2022 at 7:46 PM Peter Maydell wrote: On Wed, 16 Mar 2022 at 22:23, Alistair Francis wrote: > Hmm... This seems like a bug. We shouldn't allow the user to spec

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-21 Thread Palmer Dabbelt
On Sun, 20 Mar 2022 22:43:07 PDT (-0700), alistai...@gmail.com wrote: On Thu, Mar 17, 2022 at 7:46 PM Peter Maydell wrote: On Wed, 16 Mar 2022 at 22:23, Alistair Francis wrote: > Hmm... This seems like a bug. We shouldn't allow the user to specify a > `-bios` option if using KVM. Would you mi

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-20 Thread Alistair Francis
On Thu, Mar 17, 2022 at 7:46 PM Peter Maydell wrote: > > On Wed, 16 Mar 2022 at 22:23, Alistair Francis wrote: > > Hmm... This seems like a bug. We shouldn't allow the user to specify a > > `-bios` option if using KVM. Would you mind preparing a patch to catch > > this? > > You don't want to allo

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-19 Thread Ralf Ramsauer
On 17/03/2022 10:45, Peter Maydell wrote: On Wed, 16 Mar 2022 at 22:23, Alistair Francis wrote: Hmm... This seems like a bug. We shouldn't allow the user to specify a `-bios` option if using KVM. Would you mind preparing a patch to catch this? You don't want to allow the possibility of a b

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-17 Thread Peter Maydell
On Wed, 16 Mar 2022 at 22:23, Alistair Francis wrote: > Hmm... This seems like a bug. We shouldn't allow the user to specify a > `-bios` option if using KVM. Would you mind preparing a patch to catch > this? You don't want to allow the possibility of a bios blob that expects to run in S-mode, the

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-16 Thread Alistair Francis
On Tue, Mar 15, 2022 at 10:51 PM Ralf Ramsauer wrote: > > > > On 15/03/2022 13:42, Peter Maydell wrote: > > On Tue, 15 Mar 2022 at 12:29, Ralf Ramsauer > > wrote: > >> I have no kernel specified in the guest, so I'd then expect to boot into > >> an completely empty machine (besides the tiny start

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Ralf Ramsauer
On 15/03/2022 13:42, Peter Maydell wrote: On Tue, 15 Mar 2022 at 12:29, Ralf Ramsauer wrote: I have no kernel specified in the guest, so I'd then expect to boot into an completely empty machine (besides the tiny startup stub in the MROM). However, I still get the exact same error as mentione

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Ralf Ramsauer
On 15/03/2022 13:25, Anup Patel wrote: On Tue, Mar 15, 2022 at 5:47 PM Ralf Ramsauer wrote: On 15/03/2022 09:33, Anup Patel wrote: On Tue, Mar 15, 2022 at 12:18 PM Alistair Francis wrote: On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer wrote: Hi, I'm trying to run Linux/QEMU+KVM in

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Peter Maydell
On Tue, 15 Mar 2022 at 12:29, Ralf Ramsauer wrote: > I have no kernel specified in the guest, so I'd then expect to boot into > an completely empty machine (besides the tiny startup stub in the MROM). > However, I still get the exact same error as mentioned in my initial mail. > > Again, without "

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Anup Patel
On Tue, Mar 15, 2022 at 5:47 PM Ralf Ramsauer wrote: > > > > On 15/03/2022 09:33, Anup Patel wrote: > > On Tue, Mar 15, 2022 at 12:18 PM Alistair Francis > > wrote: > >> > >> On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer > >> wrote: > >>> > >>> Hi, > >>> > >>> I'm trying to run Linux/QEMU+KVM

Re: [EXT] Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Ralf Ramsauer
On 15/03/2022 09:33, Anup Patel wrote: On Tue, Mar 15, 2022 at 12:18 PM Alistair Francis wrote: On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer wrote: Hi, I'm trying to run Linux/QEMU+KVM inside an emulated qemu-system-riscv64 VM (x86 host). On latest&greatest QEMU (1416688c53), I run Li

Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Anup Patel
On Tue, Mar 15, 2022 at 12:18 PM Alistair Francis wrote: > > On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer > wrote: > > > > Hi, > > > > I'm trying to run Linux/QEMU+KVM inside an emulated > > qemu-system-riscv64 VM (x86 host). On latest&greatest QEMU (1416688c53), > > I run Linux inside QEMU. On

Re: QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-15 Thread Alistair Francis
On Sun, Mar 13, 2022 at 12:12 PM Ralf Ramsauer wrote: > > Hi, > > I'm trying to run Linux/QEMU+KVM inside an emulated > qemu-system-riscv64 VM (x86 host). On latest&greatest QEMU (1416688c53), > I run Linux inside QEMU. On host side: > > qemu-system-riscv64 -nographic \ > -machine virt \

QEMU+KVM on RISC-V + Hypervisor Extension

2022-03-12 Thread Ralf Ramsauer
Hi, I'm trying to run Linux/QEMU+KVM inside an emulated qemu-system-riscv64 VM (x86 host). On latest&greatest QEMU (1416688c53), I run Linux inside QEMU. On host side: qemu-system-riscv64 -nographic \ -machine virt \ -cpu 'rv64,h=true' \ -smp 8 -m 8G \ -bios $la