Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161015615
D57619.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
851 B
Referenced Files
None
Subscribers
None
D57619.diff
View Options
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -566,15 +566,21 @@
{
char tname[MAXCOMLEN + 1];
struct vcpu_info *vi = param;
- int error;
snprintf(tname, sizeof(tname), "vcpu %d", vi->vcpuid);
pthread_set_name_np(pthread_self(), tname);
if (vcpumap[vi->vcpuid] != NULL) {
- error = pthread_setaffinity_np(pthread_self(),
- sizeof(cpuset_t), vcpumap[vi->vcpuid]);
- assert(error == 0);
+ if (pthread_setaffinity_np(pthread_self(),
+ sizeof(cpuset_t), vcpumap[vi->vcpuid]) != 0) {
+ int i;
+ warn("Error pinning vcpu %d to host cpuset@%p", vi->vcpuid,
+ vcpumap[vi->vcpuid]);
+ CPU_FOREACH_ISSET(i, vcpumap[vi->vcpuid]) {
+ warnx("cpu %d enabled\n", i);
+ }
+ exit(BHYVE_EXIT_ERROR);
+ }
}
#ifdef BHYVE_SNAPSHOT
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 30, 9:07 PM (6 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34125294
Default Alt Text
D57619.diff (851 B)
Attached To
Mode
D57619: bhyve: Add CPU pinning diagnostic message
Attached
Detach File
Event Timeline
Log In to Comment