Skip to content

Commit

Permalink
Document: so2: assign-7-kvm-vmm: fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: hanyujie2002 <[email protected]>
  • Loading branch information
hanyujie2002 authored Apr 13, 2024
1 parent d0f4e88 commit 5df8b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/teaching/so2/assign7-kvm-vmm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------
Expand Down

0 comments on commit 5df8b80

Please sign in to comment.