Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Alexander Graf
On 23.08.19 14:11, Anup Patel wrote: On Fri, Aug 23, 2019 at 5:19 PM Alexander Graf wrote: On 23.08.19 13:46, Anup Patel wrote: On Fri, Aug 23, 2019 at 5:03 PM Graf (AWS), Alexander wrote: Am 23.08.2019 um 13:05 schrieb Anup Patel : On Fri, Aug 23, 2019 at 1:23 PM Alexander Graf

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Anup Patel
On Fri, Aug 23, 2019 at 5:19 PM Alexander Graf wrote: > > > > On 23.08.19 13:46, Anup Patel wrote: > > On Fri, Aug 23, 2019 at 5:03 PM Graf (AWS), Alexander > > wrote: > >> > >> > >> > >>> Am 23.08.2019 um 13:05 schrieb Anup Patel : > >>> > On Fri, Aug 23, 2019 at 1:23 PM Alexander Graf wr

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Alexander Graf
On 23.08.19 13:46, Anup Patel wrote: On Fri, Aug 23, 2019 at 5:03 PM Graf (AWS), Alexander wrote: Am 23.08.2019 um 13:05 schrieb Anup Patel : On Fri, Aug 23, 2019 at 1:23 PM Alexander Graf wrote: On 22.08.19 10:46, Anup Patel wrote: From: Atish Patra The RISC-V hypervisor specific

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Anup Patel
On Fri, Aug 23, 2019 at 5:03 PM Graf (AWS), Alexander wrote: > > > > > Am 23.08.2019 um 13:05 schrieb Anup Patel : > > > >> On Fri, Aug 23, 2019 at 1:23 PM Alexander Graf wrote: > >> > >>> On 22.08.19 10:46, Anup Patel wrote: > >>> From: Atish Patra > >>> > >>> The RISC-V hypervisor specificatio

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Graf (AWS), Alexander
> Am 23.08.2019 um 13:05 schrieb Anup Patel : > >> On Fri, Aug 23, 2019 at 1:23 PM Alexander Graf wrote: >> >>> On 22.08.19 10:46, Anup Patel wrote: >>> From: Atish Patra >>> >>> The RISC-V hypervisor specification doesn't have any virtual timer >>> feature. >>> >>> Due to this, the guest

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Anup Patel
On Fri, Aug 23, 2019 at 1:23 PM Alexander Graf wrote: > > On 22.08.19 10:46, Anup Patel wrote: > > From: Atish Patra > > > > The RISC-V hypervisor specification doesn't have any virtual timer > > feature. > > > > Due to this, the guest VCPU timer will be programmed via SBI calls. > > The host wil

Re: [PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-23 Thread Alexander Graf
On 22.08.19 10:46, Anup Patel wrote: From: Atish Patra The RISC-V hypervisor specification doesn't have any virtual timer feature. Due to this, the guest VCPU timer will be programmed via SBI calls. The host will use a separate hrtimer event for each guest VCPU to provide timer functionality.

[PATCH v5 15/20] RISC-V: KVM: Add timer functionality

2019-08-22 Thread Anup Patel
From: Atish Patra The RISC-V hypervisor specification doesn't have any virtual timer feature. Due to this, the guest VCPU timer will be programmed via SBI calls. The host will use a separate hrtimer event for each guest VCPU to provide timer functionality. We inject a virtual timer interrupt to