Skip to content

Commit

Permalink
fix: Port over type definitions for kernel 6.7
Browse files Browse the repository at this point in the history
Signed-off-by: Felicitas Pojtinger <[email protected]>
  • Loading branch information
pojntfx committed Oct 19, 2024
1 parent 3bf6866 commit c65ffee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/add-typedefs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ index 3b2bcdc6f..bb59a5013 100644
#ifndef __ASSEMBLY__
typedef void (*idtentry_t)(struct pt_regs *regs);

diff --git a/arch/x86/include/uapi/asm/pvm_para.h b/arch/x86/include/uapi/asm/pvm_para.h
index f442fb7aa918..dae18f2d3eca 100644
--- a/arch/x86/include/uapi/asm/pvm_para.h
+++ b/arch/x86/include/uapi/asm/pvm_para.h
@@ -4,6 +4,10 @@

#include <linux/const.h>

+typedef unsigned long long u64;
+typedef unsigned int u32;
+typedef unsigned short u16;
+
/*
* The CPUID instruction in PVM guest can't be trapped and emulated,
* so PVM guest should use the following two instructions instead:

0 comments on commit c65ffee

Please sign in to comment.