RE: [PATCH v2 1/2] hyperv: Move hv_current_partition_id to arch-generic code

2025-01-28 Thread Michael Kelley
From: Nuno Das Neves Sent: Tuesday, January 28, 2025 4:46 PM > > On 1/28/2025 10:45 AM, Michael Kelley wrote: > > From: Nuno Das Neves Sent: Wednesday, > > January 22, 2025 5:48 PM > >> > >> Move hv_current_partition_id and hv_get_partition_id() to hv_common.c. > >> These aren't specific to x8

Re: [PATCH v2 1/2] hyperv: Move hv_current_partition_id to arch-generic code

2025-01-28 Thread Nuno Das Neves
On 1/28/2025 10:45 AM, Michael Kelley wrote: > From: Nuno Das Neves Sent: Wednesday, > January 22, 2025 5:48 PM >> >> Move hv_current_partition_id and hv_get_partition_id() to hv_common.c. >> These aren't specific to x86_64 and will be needed by common code. >> >> Set hv_current_partition_id to H

RE: [PATCH v2 1/2] hyperv: Move hv_current_partition_id to arch-generic code

2025-01-28 Thread Michael Kelley
From: Nuno Das Neves Sent: Wednesday, January 22, 2025 5:48 PM > > Move hv_current_partition_id and hv_get_partition_id() to hv_common.c. > These aren't specific to x86_64 and will be needed by common code. > > Set hv_current_partition_id to HV_PARTITION_ID_SELF by default. > > Use a stack var

[PATCH v2 1/2] hyperv: Move hv_current_partition_id to arch-generic code

2025-01-22 Thread Nuno Das Neves
From: Nuno Das Neves Move hv_current_partition_id and hv_get_partition_id() to hv_common.c. These aren't specific to x86_64 and will be needed by common code. Set hv_current_partition_id to HV_PARTITION_ID_SELF by default. Use a stack variable for the output of the hypercall. This allows moving