Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109835974
D48717.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
780 B
Referenced Files
None
Subscribers
None
D48717.id.diff
View Options
diff --git a/sys/riscv/vmm/vmm_sbi.c b/sys/riscv/vmm/vmm_sbi.c
--- a/sys/riscv/vmm/vmm_sbi.c
+++ b/sys/riscv/vmm/vmm_sbi.c
@@ -154,6 +154,7 @@
cpuset_t active_cpus;
struct hyp *hyp;
uint64_t hart_mask;
+ uint64_t hart_mask_base;
uint64_t func_id;
int hart_id;
int bit;
@@ -161,6 +162,7 @@
func_id = hypctx->guest_regs.hyp_a[6];
hart_mask = hypctx->guest_regs.hyp_a[0];
+ hart_mask_base = hypctx->guest_regs.hyp_a[1];
dprintf("%s: hart_mask %lx\n", __func__, hart_mask);
@@ -173,6 +175,8 @@
while ((bit = ffs(hart_mask))) {
hart_id = (bit - 1);
hart_mask &= ~(1u << hart_id);
+ if (hart_mask_base != -1)
+ hart_id += hart_mask_base;
if (CPU_ISSET(hart_id, &active_cpus)) {
/* TODO. */
target_vcpu = vm_vcpu(hyp->vm, hart_id);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 3:49 AM (1 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16452892
Default Alt Text
D48717.id.diff (780 B)
Attached To
Mode
D48717: riscv vmm: consider hart_mask_base in the SBI IPI handler
Attached
Detach File
Event Timeline
Log In to Comment