[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/4] hvf: Consistent types for vCPU handles
|
From: |
Roman Bolshakov |
|
Subject: |
Re: [PATCH v2 3/4] hvf: Consistent types for vCPU handles |
|
Date: |
Mon, 6 Nov 2023 10:54:19 +0530 |
On Sat, Oct 21, 2023 at 10:05:17PM +0200, Phil Dennis-Jordan wrote:
> macOS Hypervisor.framework uses different types for identifying vCPUs,
> hv_vcpu_t or hv_vcpuid_t, depending on host architecture. They are not just
> differently named typedefs for the same primitive type, but reference
> different-width integers.
>
> Instead of using an integer type and casting where necessary, this change
> introduces a typedef which resolves to the active architecture’s hvf typedef.
> It also removes a now-unnecessary cast.
>
Reviewed-by: Roman Bolshakov <roman@roolebo.dev>
Tested-by: Roman Bolshakov <roman@roolebo.dev>
Regards,
Roman
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v2 3/4] hvf: Consistent types for vCPU handles,
Roman Bolshakov <=