Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-30 Thread Paolo Bonzini
On 30/07/19 15:50, Anup Patel wrote: >> BTW, since IPIs are handled in the SBI I wouldn't bother with in-kernel >> PLIC emulation unless you can demonstrate performance improvements (for >> example due to irqfd). In fact, it may be more interesting to add > > I thought VHOST requires irqfd and we

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-30 Thread Anup Patel
On Tue, Jul 30, 2019 at 5:03 PM Paolo Bonzini wrote: > > On 30/07/19 07:26, Anup Patel wrote: > > Here's a brief TODO list which we want to immediately work upon after this > > series: > > 1. Handle trap from unpriv access in SBI v0.1 emulation > > 2. In-kernel PLIC emulation > > 3. SBI v0.2 emula

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-30 Thread Paolo Bonzini
On 30/07/19 07:26, Anup Patel wrote: > Here's a brief TODO list which we want to immediately work upon after this > series: > 1. Handle trap from unpriv access in SBI v0.1 emulation > 2. In-kernel PLIC emulation > 3. SBI v0.2 emulation in-kernel > 4. SBI v0.2 hart hotplug emulation in-kernel > 5. .

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-30 Thread Andreas Schwab
On Jul 30 2019, Anup Patel wrote: > On Tue, Jul 30, 2019 at 12:23 PM Andreas Schwab wrote: >> >> ERROR: "riscv_cs_get_mult_shift" [arch/riscv/kvm/kvm.ko] undefined! >> ERROR: "riscv_isa" [arch/riscv/kvm/kvm.ko] undefined! >> ERROR: "smp_send_reschedule" [arch/riscv/kvm/kvm.ko] undefined! >> ERRO

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-30 Thread Anup Patel
On Tue, Jul 30, 2019 at 12:23 PM Andreas Schwab wrote: > > ERROR: "riscv_cs_get_mult_shift" [arch/riscv/kvm/kvm.ko] undefined! > ERROR: "riscv_isa" [arch/riscv/kvm/kvm.ko] undefined! > ERROR: "smp_send_reschedule" [arch/riscv/kvm/kvm.ko] undefined! > ERROR: "riscv_timebase" [arch/riscv/kvm/kvm.ko]

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-30 Thread Anup Patel
On Tue, Jul 30, 2019 at 12:23 PM Andreas Schwab wrote: > > ERROR: "riscv_cs_get_mult_shift" [arch/riscv/kvm/kvm.ko] undefined! > ERROR: "riscv_isa" [arch/riscv/kvm/kvm.ko] undefined! > ERROR: "smp_send_reschedule" [arch/riscv/kvm/kvm.ko] undefined! > ERROR: "riscv_timebase" [arch/riscv/kvm/kvm.ko]

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-29 Thread Andreas Schwab
ERROR: "riscv_cs_get_mult_shift" [arch/riscv/kvm/kvm.ko] undefined! ERROR: "riscv_isa" [arch/riscv/kvm/kvm.ko] undefined! ERROR: "smp_send_reschedule" [arch/riscv/kvm/kvm.ko] undefined! ERROR: "riscv_timebase" [arch/riscv/kvm/kvm.ko] undefined! Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-29 Thread Anup Patel
On Tue, Jul 30, 2019 at 3:17 AM Paolo Bonzini wrote: > > On 29/07/19 13:56, Anup Patel wrote: > > This series adds initial KVM RISC-V support. Currently, we are able to boot > > RISC-V 64bit Linux Guests with multiple VCPUs. > > > > Few key aspects of KVM RISC-V added by this series are: > > 1. Mi

Re: [RFC PATCH 00/16] KVM RISC-V Support

2019-07-29 Thread Paolo Bonzini
On 29/07/19 13:56, Anup Patel wrote: > This series adds initial KVM RISC-V support. Currently, we are able to boot > RISC-V 64bit Linux Guests with multiple VCPUs. > > Few key aspects of KVM RISC-V added by this series are: > 1. Minimal possible KVM world-switch which touches only GPRs and few CSR

[RFC PATCH 00/16] KVM RISC-V Support

2019-07-29 Thread Anup Patel
This series adds initial KVM RISC-V support. Currently, we are able to boot RISC-V 64bit Linux Guests with multiple VCPUs. Few key aspects of KVM RISC-V added by this series are: 1. Minimal possible KVM world-switch which touches only GPRs and few CSRs. 2. Full Guest/VM switch is done via vcpu_get