mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat: Add certs, init, io_uring, security, usr, virt subsystems, Nano editor & full LazyBox suite
This commit is contained in:
1 parent
ae5f4a96c4
commit
5662be29f5
27 files changed
+1870
-333
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#ifndef _VIRT_VIRT_H
|
||||
#define _VIRT_VIRT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef enum {
|
||||
HYPERVISOR_NONE = 0,
|
||||
HYPERVISOR_KVM,
|
||||
HYPERVISOR_QEMU,
|
||||
HYPERVISOR_VMWARE,
|
||||
HYPERVISOR_VBOX,
|
||||
HYPERVISOR_XEN,
|
||||
HYPERVISOR_HYPERV,
|
||||
HYPERVISOR_UNKNOWN
|
||||
} hypervisor_type_t;
|
||||
|
||||
typedef struct {
|
||||
hypervisor_type_t type;
|
||||
char name[32];
|
||||
char signature[16];
|
||||
bool nested_virt;
|
||||
} hypervisor_info_t;
|
||||
|
||||
void virt_init(void);
|
||||
const hypervisor_info_t* virt_get_hypervisor_info(void);
|
||||
bool virt_is_virtualized(void);
|
||||
|
||||
#endif // _VIRT_VIRT_H
|
||||
Reference in new issue
Block a user