aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/kvm_rs/fmt.rs.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvm_rs/fmt.rs.html')
-rw-r--r--src/kvm_rs/fmt.rs.html64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/kvm_rs/fmt.rs.html b/src/kvm_rs/fmt.rs.html
index 4b49d36..e8a3040 100644
--- a/src/kvm_rs/fmt.rs.html
+++ b/src/kvm_rs/fmt.rs.html
@@ -1,4 +1,5 @@
-<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `src/fmt.rs`."><title>fmt.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-cb6f1f67f1bcd037.css" id="mainThemeStyle"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="kvm_rs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.73.0 (cc66ad468 2023-10-03)" data-channel="1.73.0" data-search-js="search-6dfdfced5eff6596.js" data-settings-js="settings-de11bff964e9d4e5.js" data-settings-css="settings-8c76f75bfb6bd192.css" data-theme-light-css="light-1596385f77d47ef2.css" data-theme-dark-css="dark-0a43001d3fc2282c.css" data-theme-ayu-css="ayu-fd19013d6ce078bf.css" ><script src="../../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="../../static.files/src-script-3280b574d94e47b4.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-0795b7d26be81095.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../static.files/light-1596385f77d47ef2.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../static.files/dark-0a43001d3fc2282c.css"><link rel="stylesheet" href="../../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../kvm_rs/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
+<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `src/fmt.rs`."><title>fmt.rs - source</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-46132b98.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="kvm_rs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0 (4d91de4e4 2025-02-17)" data-channel="1.85.0" data-search-js="search-75f5ac3e.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../../static.files/src-script-56102188.js"></script><script defer src="../../src-files.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title"><h2>Files</h2></div></nav><div class="sidebar-resizer"></div><main><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1><div class="sub-heading">kvm_rs/</div>fmt.rs</h1><rustdoc-toolbar></rustdoc-toolbar></div><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers">
+<a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -127,22 +128,21 @@
<a href="#127" id="127">127</a>
<a href="#128" id="128">128</a>
<a href="#129" id="129">129</a>
-<a href="#130" id="130">130</a>
-</pre></div><pre class="rust"><code><span class="kw">use </span>std::fmt;
+<a href="#130" id="130">130</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::fmt;
<span class="kw">use </span><span class="kw">crate</span>::kvm_sys::{kvm_dtable, kvm_regs, kvm_segment, kvm_sregs};
<span class="kw">use </span><span class="kw">crate</span>::x86_64::<span class="kw-2">*</span>;
<span class="kw">impl </span>fmt::Display <span class="kw">for </span>kvm_regs {
- <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">&#39;_</span>&gt;) -&gt; fmt::Result {
+ <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">'_</span>&gt;) -&gt; fmt::Result {
<span class="macro">write!</span>(
f,
- <span class="string">&quot;rax: {:#018x} rbx: {:#018x} rcx: {:#018x} rdx: {:#018x}\n\
+ <span class="string">"rax: {:#018x} rbx: {:#018x} rcx: {:#018x} rdx: {:#018x}\n\
rsi: {:#018x} rdi: {:#018x}\n\
r8 : {:#018x} r9 : {:#018x} r10: {:#018x} r11: {:#018x}\n\
r12: {:#018x} r13: {:#018x} r14: {:#018x} r15: {:#018x}\n\
rsp: {:#018x} rbp: {:#018x}\n\
- rip: {:#018x} rfl: {:#018x} O({}) D({}) I({}) T({}) S({}) Z({}) P({}) C({})&quot;</span>,
+ rip: {:#018x} rfl: {:#018x} O({}) D({}) I({}) T({}) S({}) Z({}) P({}) C({})"</span>,
<span class="self">self</span>.rax,
<span class="self">self</span>.rbx,
<span class="self">self</span>.rcx,
@@ -174,18 +174,18 @@
}
<span class="kw">impl </span>fmt::Display <span class="kw">for </span>kvm_segment {
- <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">&#39;_</span>&gt;) -&gt; fmt::Result {
+ <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">'_</span>&gt;) -&gt; fmt::Result {
<span class="kw">if </span><span class="self">self</span>.present == <span class="number">0 </span>{
- <span class="macro">write!</span>(f, <span class="string">&quot;{:#04x} P(0)&quot;</span>, <span class="self">self</span>.selector)
+ <span class="macro">write!</span>(f, <span class="string">"{:#04x} P(0)"</span>, <span class="self">self</span>.selector)
} <span class="kw">else </span>{
<span class="macro">write!</span>(
f,
- <span class="string">&quot;{:#06x} T({}) RPL({}) BASE({:#010x}) LIMIT({:#07x}) P(1) S({}) DPL({}) DB({}) L({}) TYPE({})&quot;</span>,
+ <span class="string">"{:#06x} T({}) RPL({}) BASE({:#010x}) LIMIT({:#07x}) P(1) S({}) DPL({}) DB({}) L({}) TYPE({})"</span>,
<span class="self">self</span>.selector,
<span class="kw">if </span>seg_selector_ti(<span class="self">self</span>.selector) == <span class="number">0 </span>{
- <span class="string">&quot;GDT&quot;
+ <span class="string">"GDT"
</span>} <span class="kw">else </span>{
- <span class="string">&quot;LDT&quot;
+ <span class="string">"LDT"
</span>},
seg_selector_rpl(<span class="self">self</span>.selector),
<span class="self">self</span>.base,
@@ -195,22 +195,22 @@
<span class="self">self</span>.db,
<span class="self">self</span>.l,
<span class="kw">match </span><span class="self">self</span>.type_ {
- <span class="number">0 </span>=&gt; <span class="string">&quot;D:R---&quot;</span>,
- <span class="number">1 </span>=&gt; <span class="string">&quot;D:R-A-&quot;</span>,
- <span class="number">2 </span>=&gt; <span class="string">&quot;D:RW--&quot;</span>,
- <span class="number">3 </span>=&gt; <span class="string">&quot;D:RWA-&quot;</span>,
- <span class="number">4 </span>=&gt; <span class="string">&quot;D:R--E&quot;</span>,
- <span class="number">5 </span>=&gt; <span class="string">&quot;D:R-AE&quot;</span>,
- <span class="number">6 </span>=&gt; <span class="string">&quot;D:RW-E&quot;</span>,
- <span class="number">7 </span>=&gt; <span class="string">&quot;D:RWAE&quot;</span>,
- <span class="number">8 </span>=&gt; <span class="string">&quot;C:X---&quot;</span>,
- <span class="number">9 </span>=&gt; <span class="string">&quot;C:X-A-&quot;</span>,
- <span class="number">10 </span>=&gt; <span class="string">&quot;C:XR--&quot;</span>,
- <span class="number">11 </span>=&gt; <span class="string">&quot;C:XRA-&quot;</span>,
- <span class="number">12 </span>=&gt; <span class="string">&quot;C:X--C&quot;</span>,
- <span class="number">13 </span>=&gt; <span class="string">&quot;C:X-AC&quot;</span>,
- <span class="number">14 </span>=&gt; <span class="string">&quot;C:XR-C&quot;</span>,
- <span class="number">15 </span>=&gt; <span class="string">&quot;C:XRAC&quot;</span>,
+ <span class="number">0 </span>=&gt; <span class="string">"D:R---"</span>,
+ <span class="number">1 </span>=&gt; <span class="string">"D:R-A-"</span>,
+ <span class="number">2 </span>=&gt; <span class="string">"D:RW--"</span>,
+ <span class="number">3 </span>=&gt; <span class="string">"D:RWA-"</span>,
+ <span class="number">4 </span>=&gt; <span class="string">"D:R--E"</span>,
+ <span class="number">5 </span>=&gt; <span class="string">"D:R-AE"</span>,
+ <span class="number">6 </span>=&gt; <span class="string">"D:RW-E"</span>,
+ <span class="number">7 </span>=&gt; <span class="string">"D:RWAE"</span>,
+ <span class="number">8 </span>=&gt; <span class="string">"C:X---"</span>,
+ <span class="number">9 </span>=&gt; <span class="string">"C:X-A-"</span>,
+ <span class="number">10 </span>=&gt; <span class="string">"C:XR--"</span>,
+ <span class="number">11 </span>=&gt; <span class="string">"C:XRA-"</span>,
+ <span class="number">12 </span>=&gt; <span class="string">"C:X--C"</span>,
+ <span class="number">13 </span>=&gt; <span class="string">"C:X-AC"</span>,
+ <span class="number">14 </span>=&gt; <span class="string">"C:XR-C"</span>,
+ <span class="number">15 </span>=&gt; <span class="string">"C:XRAC"</span>,
<span class="kw">_ </span>=&gt; <span class="macro">unreachable!</span>(),
}
)
@@ -219,16 +219,16 @@
}
<span class="kw">impl </span>fmt::Display <span class="kw">for </span>kvm_dtable {
- <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">&#39;_</span>&gt;) -&gt; fmt::Result {
- <span class="macro">write!</span>(f, <span class="string">&quot;BASE({:#018x}) LIMIT({:#07x})&quot;</span>, <span class="self">self</span>.base, <span class="self">self</span>.limit)
+ <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">'_</span>&gt;) -&gt; fmt::Result {
+ <span class="macro">write!</span>(f, <span class="string">"BASE({:#018x}) LIMIT({:#07x})"</span>, <span class="self">self</span>.base, <span class="self">self</span>.limit)
}
}
<span class="kw">impl </span>fmt::Display <span class="kw">for </span>kvm_sregs {
- <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">&#39;_</span>&gt;) -&gt; fmt::Result {
+ <span class="kw">fn </span>fmt(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>fmt::Formatter&lt;<span class="lifetime">'_</span>&gt;) -&gt; fmt::Result {
<span class="macro">write!</span>(
f,
- <span class="string">&quot;cs : {}\n\
+ <span class="string">"cs : {}\n\
ds : {}\n\
es : {}\n\
fs : {}\n\
@@ -239,7 +239,7 @@
gdt : {}\n\
idt : {}\n\
cr0 : {:#018x} cr2: {:#018x} cr3: {:#018x} cr4: {:#018x}\n\
- efer: {:#018x}&quot;</span>,
+ efer: {:#018x}"</span>,
<span class="self">self</span>.cs,
<span class="self">self</span>.ds,
<span class="self">self</span>.es,