Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 765 Bytes

File metadata and controls

40 lines (28 loc) · 765 Bytes
title description author ms.author ms.date
Create a new virtual processor in a partition
Learn about the WHvCreateVirtualProcessor function that creates a new virtual processor in a partition.
sethmanheim
sethm
04/20/2022

WHvCreateVirtualProcessor

Syntax

HRESULT
WINAPI
WHvCreateVirtualProcessor(
    _In_ WHV_PARTITION_HANDLE Partition,
    _In_ UINT32 VpIndex,
    _In_ UINT32 Flags
    );

Parameters

Partition

Handle to the partition object

VpIndex

Specifies the index of the new virtual processor

Flags

Unused, must be zero   

Remarks

The WHvCreateVirtualProcessor function creates a new virtual processor in a partition. The index of the virtual processor is used to set the APIC ID of the processor.