Date: Wed, 28 Aug 2019 22:02:03 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 240180] Stop abusing __pcpu in bhyve Message-ID: <bug-240180-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240180 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@FreeBSD.org Reporter: jhb@FreeBSD.org In the case of &__pcpu[curcpu], it would be better to use PCPU_GET(prvspace= ).=20 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240180-27103>