kvm: Fix typos.

BUG=None
TEST=cargo test

Change-Id: Id731f8087b391319329eca1f59bee906f3046bdd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2283337
Commit-Queue: Zach Reizner <zachr@chromium.org>
Auto-Submit: Andrew Walbran <qwandor@google.com>
Tested-by: Zach Reizner <zachr@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
This commit is contained in:
Andrew Walbran 2020-07-07 13:12:05 +01:00 committed by Commit Bot
parent 5b1655cc66
commit 945b980e1a

View file

@ -1616,8 +1616,7 @@ impl Vcpu {
} }
/// Specifies set of signals that are blocked during execution of KVM_RUN. /// Specifies set of signals that are blocked during execution of KVM_RUN.
/// Signals that are not blocked will will cause KVM_RUN to return /// Signals that are not blocked will cause KVM_RUN to return with -EINTR.
/// with -EINTR.
/// ///
/// See the documentation for KVM_SET_SIGNAL_MASK /// See the documentation for KVM_SET_SIGNAL_MASK
pub fn set_signal_mask(&self, signals: &[c_int]) -> Result<()> { pub fn set_signal_mask(&self, signals: &[c_int]) -> Result<()> {
@ -1660,7 +1659,7 @@ impl Vcpu {
id: reg_id, id: reg_id,
addr: data_ref as u64, addr: data_ref as u64,
}; };
// safe becuase we allocated the struct and we know the kernel will read // safe because we allocated the struct and we know the kernel will read
// exactly the size of the struct // exactly the size of the struct
let ret = unsafe { ioctl_with_ref(self, KVM_SET_ONE_REG(), &onereg) }; let ret = unsafe { ioctl_with_ref(self, KVM_SET_ONE_REG(), &onereg) };
if ret < 0 { if ret < 0 {