hypervisor: x86_64: default Regs::rip to reset vector

This matches the reset value of the registers defined by the Intel
manuals. It is currently overwritten on all paths initializing Regs, but
it will be used in an upcoming commit to simplify the BIOS boot path.

BUG=b:237095693
TEST=Boot x86_64 Linux
TEST=cargo test -p x86_64

Change-Id: I7a96882fad05440c98bde2fad7ad15c0890f1cfa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3735639
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-06-29 14:32:53 -07:00 committed by Chromeos LUCI
parent 814114c64c
commit 6f576dd813

View file

@ -597,7 +597,7 @@ impl Default for Regs {
r13: 0,
r14: 0,
r15: 0,
rip: 0,
rip: 0xfff0, // Reset vector.
rflags: 0x2, // Bit 1 (0x2) is always 1.
}
}