Re: [PATCH 1/1] target/riscv/kvm.c: Fix the hart bit setting of AIA

2024-05-07 Thread Yong-Xuan Wang
Hi Alistair, On Mon, Apr 29, 2024 at 11:25 AM Alistair Francis wrote: > > On Mon, Apr 15, 2024 at 4:53 PM Yong-Xuan Wang > wrote: > > > > The hart bit setting is different with Linux AIA driver[1] when the number > > of hart is power of 2. For example, when the guest has 4 harts, the > > estima

Re: [PATCH 1/1] target/riscv/kvm.c: Fix the hart bit setting of AIA

2024-04-28 Thread Alistair Francis
On Mon, Apr 15, 2024 at 4:53 PM Yong-Xuan Wang wrote: > > The hart bit setting is different with Linux AIA driver[1] when the number > of hart is power of 2. For example, when the guest has 4 harts, the > estimated result of AIA driver is 2, whereas we pass 3 to RISC-V/KVM. Since > only 2 bits are

[PATCH 1/1] target/riscv/kvm.c: Fix the hart bit setting of AIA

2024-04-14 Thread Yong-Xuan Wang
The hart bit setting is different with Linux AIA driver[1] when the number of hart is power of 2. For example, when the guest has 4 harts, the estimated result of AIA driver is 2, whereas we pass 3 to RISC-V/KVM. Since only 2 bits are needed to represent 4 harts, update the formula to get the accur