1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518
|
commit 89f064748554e11832a3ec783945e1f4c7fe846e
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Fri Dec 13 18:00:57 2024 -0800
libxshmfence 1.3.3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 3aaf46a2742d1698f3a4399b2bb2f855c0b904fe
Author: Asahi Lina <lina@asahilina.net>
Date: Tue Oct 22 22:28:19 2024 +0900
alloc: Allow disabling memfd usage at runtime with XSHMFENCE_NO_MEMFD=1
For thin VMs used for compatibility reasons, it is desirable to directly
proxy the X11 protocol between an application running in a VM and an X
server running on the host. We can proxy futex wakeups with some watcher
code, but we need the futex memory itself to be shared. This works when
/dev/shm is mounted with virtiofs with DAX, but cannot work for memfds.
Add a XSHMFENCE_NO_MEMFD environment variable that, when set, disables
the memfd codepath and falls back to /dev/shm.
Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/merge_requests/9>
commit 4fca45a71f08a5bebd12d39c85f49e0b0e4426bf
Author: Thomas Devoogdt <thomas@devoogdt.com>
Date: Fri Apr 5 10:45:15 2024 +0200
src/xshmfence_futex.h: fix build on 32-bit architectures using 64-bit time_t
Fix the following build failure on 32-bit architectures using 64-bit
time_t (e.g. riscv32):
xshmfence_futex.h: In function 'sys_futex':
xshmfence_futex.h:58:24: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'?
58 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
| ^~~~~~~~~
| sys_futex
Similar to:
https://gitlab.freedesktop.org/mesa/mesa/-/commit/7d87478124061915582412ba410759afe863d679
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/commit/e39ad96136a8c340b3aea6b036024e28f14584f3
Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/merge_requests/8>
commit 042a1cf3705a2c70f6e22eb5bd8541dd32652c9b
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat Dec 2 12:26:28 2023 -0800
configure: replace deprecated AC_TRY_COMPILE with AC_COMPILE_IFELSE
Clears autoconf warnings:
configure.ac:127: warning: The macro 'AC_TRY_COMPILE' is obsolete.
configure.ac:127: You should run autoupdate.
./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from...
configure.ac:127: the top level
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 0c5b190725bf1818308979ac4480960b75987aa5
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Wed Mar 8 14:50:24 2023 -0800
configure: replace deprecated AC_HELP_STRING with AS_HELP_STRING
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 9723b888ccc0efc1d38ae63bf12a0d134cf594ae
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat Mar 4 10:44:45 2023 -0800
configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.
Clears autoconf warnings:
configure.ac:13: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:13: You should run autoupdate.
aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from...
configure.ac:13: the top level
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit edbb7d9e5f3912fe521f0cfe5ae416bb9ca83633
Author: Matt Turner <mattst88@gmail.com>
Date: Thu Dec 8 10:40:00 2022 -0500
libxshmfence 1.3.2
Signed-off-by: Matt Turner <mattst88@gmail.com>
commit 7df37ab0c44ee9c24153c7a1eaf05a8a95e9ac80
Author: Matt Turner <mattst88@gmail.com>
Date: Tue Nov 29 12:08:54 2022 -0500
configure: Use AC_SYS_LARGEFILE to enable large file support
Signed-off-by: Matt Turner <mattst88@gmail.com>
commit 43749ba6a7631f5060ef85c93942ec32dfd39bf8
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Tue Oct 18 09:38:22 2022 -0700
libxshmfence 1.3.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit bff067edd6c9ad231affd29283757fe6b431bc54
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sun Jul 17 18:05:30 2022 -0700
gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 7aa043acaff88d5ee5a18e40796acf0da1d98a6c
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sun Jul 17 18:03:52 2022 -0700
Fix spelling/wording issues
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 48446b1610f3d4e4236bd83143718042cd6460a8
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sun Jul 17 18:02:46 2022 -0700
Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 946f99b9e4e80d98e5af96bf7f4b0b0107cf25de
Author: Jan Beich <jbeich@FreeBSD.org>
Date: Sat Aug 3 21:40:37 2019 +0000
alloc: prefer SHM_ANON on FreeBSD a la memfd_create
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
commit 51d4b7eafef091bd77c59777537e762fe3e586a8
Author: Jan Beich <jbeich@FreeBSD.org>
Date: Fri Jul 7 13:57:56 2017 +0000
alloc: prefer atomic close-on-exec without O_TMPFILE as well
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
commit 87a66f2eae8016a62d1b29e38160ed38de3144ef
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Fri Dec 7 19:50:56 2018 -0800
Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 40f80ca096251353977d3d75e63e6efd5e2321dc
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Mon Nov 19 23:08:58 2018 -0800
Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit f38b2e73071ba516127f8f5ae47f48df58dc9d53
Author: Matt Turner <mattst88@gmail.com>
Date: Mon Feb 26 09:26:06 2018 -0800
libxshmfence 1.3
Signed-off-by: Matt Turner <mattst88@gmail.com>
commit 30d946bc7b522ada9ec2fdbd502f9e36aae21bba
Author: Michał Górny <mgorny@gentoo.org>
Date: Thu Feb 22 19:23:38 2018 +0100
Fix missing <limits.h> include for HAVE_UMTX branch of futex
This fixes build on Gentoo/FreeBSD which failed due to undefined
'INT_MAX'.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Matt Turner <mattst88@gmail.com>
commit 517f21745c43883c1fd7128eeba3e2ae963cb779
Author: Adam Jackson <ajax@redhat.com>
Date: Mon Jan 29 14:36:04 2018 -0500
Revert "configure: Nerf a thing"
Definitely didn't mean to push this.
This reverts commit 1f194603cb927352c42798bead29c8ac3a680d02.
commit 0b550a4e7acf02d3478602848f6afbfcbfb0d4b2
Author: Ross Burton <ross.burton@intel.com>
Date: Mon Jan 29 16:24:36 2018 +0000
configure.ac: call AC_USE_SYSTEM_EXTENSIONS
With glibc 2.27 memfd_create() is inside a _GNU_SOURCE guard, so call
AC_USE_SYSTEM_EXTENSIONS to get this defined.
Signed-off-by: Ross Burton <ross.burton@intel.com>
commit 1f194603cb927352c42798bead29c8ac3a680d02
Author: Adam Jackson <ajax@redhat.com>
Date: Thu Dec 14 14:31:17 2017 -0500
configure: Nerf a thing
Signed-off-by: Adam Jackson <ajax@redhat.com>
commit db7966bee2ec46b835d0bb374f35ae631a0edbd1
Author: Mihail Konev <k.mvc@ya.ru>
Date: Thu Jan 26 13:52:49 2017 +1000
autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
commit e242a02f650663f5d25915899126cd081f6c6083
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date: Mon Mar 9 12:00:52 2015 +0000
autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
commit f290f3946105e76999f4107100a619f00b065141
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue Jan 24 10:32:07 2017 +1000
autogen.sh: use exec instead of waiting for configure to finish
Syncs the invocation of configure with the one from the server.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
commit fe2d6dbba6356ff275649017dd516f0270d79595
Author: Keith Packard <keithp@keithp.com>
Date: Fri Jan 2 10:44:39 2015 -0800
Bump version to 1.2
Release with memfd support
Signed-off-by: Keith Packard <keithp@keithp.com>
commit b63ea144a0439c54a3a147274afeeb115caced5a
Author: Keith Packard <keithp@keithp.com>
Date: Thu Oct 9 14:01:21 2014 +0200
Use linux 3.17 memfd_create syscall when available
Linux 3.17 introduces a new anonymous memory allocation that returns a
file descriptor which we can pass around. Use this in preference to
creating a file in the filesystem where available.
Signed-off-by: Keith Packard <keithp@keithp.com>
commit 9c4f070e1304a3503cfab08f68573443025fc4c9
Author: Keith Packard <keithp@keithp.com>
Date: Tue Jun 17 13:45:24 2014 -0700
Use /dev/shm as an optional shared memory directory
This is the path coded into glibc, so it should exist and be useful on
any glibc-based system
Signed-off-by: Keith Packard <keithp@keithp.com>
commit d3efccb33fa599d48004b22f2e07a19da4aaf789
Author: Jung-uk Kim <jkim@FreeBSD.org>
Date: Mon Dec 9 18:35:45 2013 -0500
Add support for FreeBSD using umtx (v3).
This fixes a sign-extension bug in the previous versions.
Signed-off-by: Jung-uk Kim <jkim@FreeBSD.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
commit 2b3415a32d44b9b51bf57877bb61d982667c10f0
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat May 31 21:39:32 2014 -0700
autogen.sh: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit 9089c55ac4433bc79b6f3951c71dda9691ab5c29
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date: Sat May 31 21:38:41 2014 -0700
configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
commit ca4ef282b55f3f05acc29a7c76b624f130cc74de
Author: Julien Cristau <jcristau@debian.org>
Date: Tue Dec 3 20:14:38 2013 +0100
Check return value from ftruncate
Silences compiler warning:
xshmfence_alloc.c: In function 'xshmfence_alloc_shm':
xshmfence_alloc.c:54:11: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
ftruncate(fd, sizeof (struct xshmfence));
^
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
commit e8dd66fee206f93e1bee059bdadde064901ed745
Author: Keith Packard <keithp@keithp.com>
Date: Tue Nov 26 21:55:20 2013 -0800
Update to version 1.1
Signed-off-by: Keith Packard <keithp@keithp.com>
commit 4b7c89d0dcaf48140c190dfe6a4560960229ab44
Author: Keith Packard <keithp@keithp.com>
Date: Mon Nov 25 13:36:54 2013 -0800
Describe the library better in the README file
Signed-off-by: Keith Packard <keithp@keithp.com>
commit c43c79c34d26277609fa02aedc1b862f4a280808
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 14:21:35 2013 -0800
Ignore test build files and release announcements
Signed-off-by: Keith Packard <keithp@keithp.com>
commit d4938bf5e57375b70c73831402fc8637996aad31
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 11:23:56 2013 -0800
Set symbol visibility attribute to hide internal symbols
Expose only the official API.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit e390e3aaee3dace2a1e6cfe66efd884fc256b0f0
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 11:22:04 2013 -0800
Provide pthread-based alternative implementation
This uses pthread mutexes and condition variables instead of futexes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit daa78ee9a5f9b5590d540aa06466d6728fb2c795
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 11:19:50 2013 -0800
Split out futex implementation from general API
This splits the futex-specific code out into a separate file so that
future versions of the library could use some other underlying primitive.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit e15fa576597fb09330e603d17a51d7449a392e7c
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 09:13:48 2013 -0800
Add test program
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit bdbb26378da91e541f2fe2b3e827d9f6ed11f4a8
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 09:12:36 2013 -0800
Use O_TMPFILE if available
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit c17583d05872e4d9fb39af1a9963dc3738556b27
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 08:30:44 2013 -0800
Locate directory for shared memory files at configure time
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit b394d499eeb6abb0f23a629f22f6634f137d279e
Author: Keith Packard <keithp@keithp.com>
Date: Wed Nov 20 08:25:44 2013 -0800
Change fence memory type from 'int32_t' to 'struct shmfence'
This will allow other implementations to use alternate
representations, as well as providing additional typechecking.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
commit d6fe39b4c3ec6ca75fb935b88a14916c730a6c26
Author: Gaetan Nadon <memsize@videotron.ca>
Date: Tue Nov 5 21:49:48 2013 -0500
lint: remove usage of libxshmfence_la_SOURCES
This variable is always empty.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
commit 3b70b526f1dd4ccf35a63fc7d385d4d7098b8f6a
Author: Gaetan Nadon <memsize@videotron.ca>
Date: Tue Nov 5 21:36:18 2013 -0500
make: list non installed headers under the _SOURCES variable
Recommended by Automake:
http://www.gnu.org/software/automake/manual/automake.html#Headers
Also, this header is missing in the lint target $(libxshmfence_la_SOURCES)
As a bonus, all other libraries are following this advice.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
commit f3fbd8e5026c0bb8b4d7f48875550bd3711e3c6e
Author: Gaetan Nadon <memsize@videotron.ca>
Date: Tue Nov 5 21:31:42 2013 -0500
make: add $(CWARNFLAGS)
It's required for all X libraries
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
commit b77bedb25d8eea02cc8114daf105dfed096ca024
Author: Gaetan Nadon <memsize@videotron.ca>
Date: Tue Nov 5 09:20:46 2013 -0500
Add the required README file
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
commit 67517e51374688c899e295d4d37371bda85bedbc
Author: Gaetan Nadon <memsize@videotron.ca>
Date: Tue Nov 5 09:18:53 2013 -0500
Add mandatory COPYING file.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
commit d2272731010bd352219eb4ac738224bb5b69a6f9
Author: Aaron Plattner <aplattner@nvidia.com>
Date: Fri Nov 1 14:44:54 2013 -0700
Copy autotools boilerplate from http://www.x.org/wiki/NewModuleGuidelines/
I verified that this works with autoconf both 2.60 and 2.69.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
commit 7f32d04bd4f583b0d4871450560bd2e9bafc3d79
Author: Aaron Plattner <aplattner@nvidia.com>
Date: Fri Nov 1 14:12:55 2013 -0700
Copy the standard .gitignore from other lib packages
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
commit 8c83034247886168218eaa4d378cc8bf0c65a9cd
Author: Keith Packard <keithp@keithp.com>
Date: Thu Oct 31 16:36:54 2013 -0700
Update to verion 1.0
Signed-off-by: Keith Packard <keithp@keithp.com>
commit 534cfada3291b56fd13546615f12654cde1a502f
Author: Keith Packard <keithp@keithp.com>
Date: Mon Apr 29 13:21:56 2013 -0700
Import first version of the library
Signed-off-by: Keith Packard <keithp@keithp.com>
|