From 5df8b80c1e1464debc1ab334ee1736a6dcb997fe Mon Sep 17 00:00:00 2001 From: hanyujie2002 Date: Sat, 13 Apr 2024 09:07:33 +0800 Subject: [PATCH] Document: so2: assign-7-kvm-vmm: fix typo Signed-off-by: hanyujie2002 --- Documentation/teaching/so2/assign7-kvm-vmm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/teaching/so2/assign7-kvm-vmm.rst b/Documentation/teaching/so2/assign7-kvm-vmm.rst index 3eb0b20c1ceb30..2a7424378fffcd 100644 --- a/Documentation/teaching/so2/assign7-kvm-vmm.rst +++ b/Documentation/teaching/so2/assign7-kvm-vmm.rst @@ -105,7 +105,7 @@ need to configure several CPU registers. 1. First, we will use ``KVM_GET_SREGS`` to get the registers. We use ``struct kvm_regs`` for this task. 2. We will need to set ``cs.selector`` and ``cs.base`` to 0. We will use ``KVM_SET_SREGS`` to set the registers. -3. Next we will clear all ``FLAGS`` bits via the ``rflags`` register, this means setting ``rflags`` to 2 since bit 1 must always be to 1. We alo set the ``RIP`` register to 0. +3. Next we will clear all ``FLAGS`` bits via the ``rflags`` register, this means setting ``rflags`` to 2 since bit 1 must always be to 1. We also set the ``RIP`` register to 0. Setup long mode ---------------