microsoft/openvmm

Public

mirrored fromhttps://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
release/2411

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

openhcl/kmsg_defs/src/lib.rs

32lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Kmsg-related definitions shared by underhill_core and underhill_init.
5
6/// system is unusable
7pub const LOGLEVEL_EMERG: u8 = 0;
8/// action must be taken immediately
9pub const LOGLEVEL_ALERT: u8 = 1;
10/// critical conditions
11pub const LOGLEVEL_CRIT: u8 = 2;
12/// error conditions
13pub const LOGLEVEL_ERR: u8 = 3;
14/// warning conditions
15pub const LOGLEVEL_WARNING: u8 = 4;
16/// normal but significant condition
17pub const LOGLEVEL_NOTICE: u8 = 5;
18/// informational
19pub const LOGLEVEL_INFO: u8 = 6;
20/// debug-level messages
21pub const LOGLEVEL_DEBUG: u8 = 7;
22
23/// The facility for kernel messages.
24pub const KERNEL_FACILITY: u8 = 0;
25
26/// The message prefix for ttyprintk messages.
27pub const TTYPRINK_PREFIX: &str = "[U] ";
28
29/// underhill_init user-mode log facility
30pub const UNDERHILL_INIT_KMSG_FACILITY: u8 = 2;
31/// underhill user-mode log facility
32pub const UNDERHILL_KMSG_FACILITY: u8 = 3;