[Bug 240180] Stop abusing __pcpu in bhyve
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Aug 28 22:02:03 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240180
Bug ID: 240180
Summary: Stop abusing __pcpu in bhyve
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bhyve
Assignee: virtualization at FreeBSD.org
Reporter: jhb at FreeBSD.org
In the case of &__pcpu[curcpu], it would be better to use PCPU_GET(prvspace).
curcpu is already PCPU_GET(cpuid), so getting prvspace is probably fewer
instructions, but it also avoids bhyve assuming details about how pcpu
structures are allocated.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-virtualization
mailing list