]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Remove some no-op code for setting RIP.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 21 Dec 2022 18:32:24 +0000 (10:32 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 21 Dec 2022 18:32:24 +0000 (10:32 -0800)
commitceb0d0b0f184d72f31ebdaa4edc752aed78a5807
treed6080cbbd46dc451b0b7fb63d5a334ea8fb8db11
parent461663ddbad02a4a5135673d545695b1a9f25ed0
bhyve: Remove some no-op code for setting RIP.

fbsdrun_addcpu() read the current vCPU's RIP register from the kernel
via vm_get_register() to pass along through some layers to vm_loop()
which then set the register via vm_set_register().  However, this is
just always setting the value back to itself.

Reviewed by: corvink
Differential Revision: https://reviews.freebsd.org/D37643
usr.sbin/bhyve/bhyverun.c