Skip to content

Commit 19a7312

Browse files
chore: resolve copilot comments
1 parent 0952aec commit 19a7312

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

opentmk/src/arch/aarch64/hypercall.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//! Hypercall interface for AArch64 architecture.
55
6-
/// Writes a synthehtic register to tell the hypervisor the OS ID.
6+
/// Writes a synthetic register to tell the hypervisor the OS ID.
77
fn report_os_id(guest_os_id: u64) {
88
// On ARM64, to be able to make hypercalls, one needs first to set the Guest OS ID
99
// synthetic register using a hypercall. Can't use `Hvcall::set_register` at that will

opentmk/src/arch/x86_64/interrupt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static MUTEX: Mutex<()> = Mutex::new(());
2626
fn no_op() {}
2727

2828
fn common_handler(_stack_frame: InterruptStackFrame, interrupt: u8) {
29-
// SAFETY: Handlers are initilizaed to no_op and only set via set_handler which is
29+
// SAFETY: Handlers are initialized to no_op and only set via set_handler which is
3030
// protected by a mutex.
3131
unsafe {
3232
HANDLERS[interrupt as usize]();

opentmk/src/platform/hyperv/arch/x86_64/hypercall.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ use zerocopy::IntoBytes;
1212

1313
use crate::platform::hyperv::arch::hypercall::HvCall;
1414

15-
// avoiding inline for debuggability in release builds
15+
// avoiding inline for debuggability in release builds.
1616
#[inline(never)]
1717
#[cfg(target_arch = "x86_64")] // xtask-fmt allow-target-arch cpu-intrinsic
1818
/// Invokes a hypercall specifically for switching to a VTL context.
1919
///
2020
/// # Safety
21-
/// The caller must ensure that the hypercall is invoked in a context where it is safe to do so
21+
/// The caller must ensure that the hypercall is invoked in a context where it is safe to do so.
2222
unsafe fn invoke_hypercall_vtl(control: hvdef::hypercall::Control) {
2323
// SAFETY: the caller guarantees the safety of this operation.
2424
unsafe {
@@ -189,7 +189,7 @@ impl HvCall {
189189
Ok(context)
190190
}
191191

192-
// avoiding inline for debuggability in release builds
192+
// avoiding inline for debuggability in release builds.
193193
#[inline(never)]
194194
/// Invokes the VtlCall hypercall.
195195
pub(crate) fn vtl_call() {
@@ -200,7 +200,7 @@ impl HvCall {
200200
unsafe { invoke_hypercall_vtl(control) };
201201
}
202202

203-
// avoiding inline for debuggability in release builds
203+
// avoiding inline for debuggability in release builds.
204204
#[inline(never)]
205205
/// Invokes the VtlReturn hypercall.
206206
pub(crate) fn vtl_return() {

opentmk/src/tests/hyperv/hv_error_vp_start.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn exec<T>(ctx: &mut T)
1414
where
1515
T: VtlPlatformTrait + VirtualProcessorPlatformTrait<T>,
1616
{
17-
// Skiping VTL setup for now to test the negitive case
17+
// Skipping VTL setup for now to test the negative case
1818

1919
let vp_count = ctx.get_vp_count();
2020
tmk_assert!(vp_count.is_ok(), "get_vp_count should succeed");

opentmk/src/tests/hyperv/test_helpers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
macro_rules! create_function_with_restore {
77
($func_name:ident, $symbol:ident) => {
88
#[inline(never)]
9-
// avoiding inline for debuggability in release builds
9+
// avoiding inline for debuggability in release builds.
1010
fn $func_name() {
1111
// SAFETY: we are calling a function pointer and restoring all registers.
1212
unsafe {

support/nostd_spin_channel/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use thiserror::Error;
1919

2020
/// An unbounded channel implementation with priority send capability.
2121
/// This implementation works in no_std environments using spin-rs.
22-
/// It uses a VecDeque as the underlying buffer
22+
/// It uses a VecDeque as the underlying buffer.
2323
pub struct Channel<T> {
2424
inner: Arc<ChannelInner<T>>,
2525
}

0 commit comments

Comments
 (0)