-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solo5-kernel-ukvm: patch to avoid #include <asm/msr-index.h>, no long…
…er shipped with linux-libc-dev (by @mato)
- Loading branch information
Showing
5 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
packages/solo5-kernel-ukvm/solo5-kernel-ukvm.0.2.2-1/files/solo5-no-asm-msr-index.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- a/ukvm/ukvm-core.c | ||
+++ b/ukvm/ukvm-core.c | ||
@@ -36,7 +36,6 @@ | ||
#include <sys/stat.h> | ||
#include <sys/types.h> | ||
#include <linux/const.h> | ||
-#include <asm/msr-index.h> | ||
#include <elf.h> | ||
#include <errno.h> | ||
#include <assert.h> | ||
--- a/ukvm/ukvm-cpu.h | ||
+++ b/ukvm/ukvm-cpu.h | ||
@@ -133,4 +133,7 @@ struct _kvm_segment { | ||
seg.avl = GDT_GET_AVL(gdt_ent); \ | ||
} while (0) | ||
|
||
+#define EFER_LME_BIT 8 /* Long mode enable (R/W) */ | ||
+#define EFER_LME _BITUL(EFER_LME_BIT) | ||
+ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters