[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/8] hvf: Actually set SIG_IPI mask
From: |
Alexander Graf |
Subject: |
[PATCH v2 3/8] hvf: Actually set SIG_IPI mask |
Date: |
Mon, 30 Nov 2020 04:07:18 +0100 |
In the hvf init function, we prepare a signal mask for SIG_IPI, but
then fail to set it. This seems to work by chance on some systems,
where SIGUSR2 is already unmasked by default. It fails however on
ARM Big Sur.
So let's set the signal mask as intended.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
---
accel/hvf/hvf-cpus.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/accel/hvf/hvf-cpus.c b/accel/hvf/hvf-cpus.c
index 4d1cca9d6e..38559ab649 100644
--- a/accel/hvf/hvf-cpus.c
+++ b/accel/hvf/hvf-cpus.c
@@ -338,6 +338,7 @@ static int hvf_init_vcpu(CPUState *cpu)
pthread_sigmask(SIG_BLOCK, NULL, &set);
sigdelset(&set, SIG_IPI);
+ pthread_sigmask(SIG_SETMASK, &set, NULL);
r = hv_vcpu_create((hv_vcpuid_t *)&cpu->hvf_fd, HV_VCPU_DEFAULT);
cpu->vcpu_dirty = 1;
--
2.24.3 (Apple Git-128)
- [PATCH v2 0/8] hvf: Implement Apple Silicon Support, Alexander Graf, 2020/11/29
- [PATCH v2 3/8] hvf: Actually set SIG_IPI mask,
Alexander Graf <=
- [PATCH v2 6/8] hvf: arm: Mark CPU as dirty on reset, Alexander Graf, 2020/11/29
- [PATCH v2 5/8] arm: Set PSCI to 0.2 for HVF, Alexander Graf, 2020/11/29
- [PATCH v2 4/8] hvf: Introduce hvf vcpu struct, Alexander Graf, 2020/11/29
- [PATCH v2 1/8] hvf: Add hypervisor entitlement to output binaries, Alexander Graf, 2020/11/29
- [PATCH v2 8/8] arm: Add Hypervisor.framework build target, Alexander Graf, 2020/11/29
- [PATCH v2 2/8] hvf: Move common code out, Alexander Graf, 2020/11/29
- [PATCH v2 7/8] hvf: Add Apple Silicon support, Alexander Graf, 2020/11/29
- Re: [PATCH v2 0/8] hvf: Implement Apple Silicon Support, no-reply, 2020/11/29