執行取消退出

因主機取消導致的退出上下文資料。

語法

//
// Context data for an exit caused by a cancellation from the host (WHvRunVpExitReasonCanceled)
//
typedef enum WHV_RUN_VP_CANCEL_REASON
{
    WHvRunVpCancelReasonUser = 0 // Execution canceled by WHvCancelRunVirtualProcessor
} WHV_RUN_VP_CANCEL_REASON;

//
// Alias for non-standard capitalization found in earlier versions of the header
//
#define WhvRunVpCancelReasonUser WHvRunVpCancelReasonUser

typedef struct WHV_RUN_VP_CANCELED_CONTEXT
{
    WHV_RUN_VP_CANCEL_REASON CancelReason;
} WHV_RUN_VP_CANCELED_CONTEXT;

Remarks

結構中會提供 WHV_RUN_VP_CANCELED_CONTEXT 由宿主系統造成的出口資訊。

請注意,WHvRunVpExitReasonCanceled 的數值在 x64 和 Arm64 之間是不同的。

另請參閱