NOVA-microhypervisor/inc/x86_64/patch_arch.hpp

26 lines
768 B
C++

/*
* Instruction Patching: Architecture-Specific Part (x86)
*
* Copyright (C) 2019-2025 Udo Steinberg, BlueRock Security, Inc.
*
* This file is part of the NOVA microhypervisor.
*
* NOVA is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* NOVA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License version 2 for more details.
*/
#pragma once
#define NOP_LEN 1
#define NOP_OPC 0x90
#define PATCH_XSAVES 0
#define PATCH_CET_IBT 1
#define PATCH_CET_SSS 2