Skip to content

Instantly share code, notes, and snippets.

From c2134e3162b175a5d6a5ad17c771c105bd420485 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Mon, 3 Aug 2026 16:59:57 +0100
Subject: [PATCH] device-types/blk/description.tex: Allow longer device IDs to
be returned
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
device-types/blk/description.tex | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
@rwmjones
rwmjones / gist:681f1fff39a2099dfe67d46959ef0e0a
Created July 31, 2026 13:34
0001-device-types-blk-description.tex-Add-feature-flag-fo.patch
From 60e188d06d775d51e501a4c3d994eff3326c7af9 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Fri, 31 Jul 2026 14:32:03 +0100
Subject: [PATCH] device-types/blk/description.tex: Add feature flag for long
device IDs
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
---
device-types/blk/description.tex | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
Thread 2 (Thread 0x7fe7b05ff6c0 (LWP 1076966) "vshEventLoop"):
#0 0x00007fe7b239ffb2 in __syscall_cancel_arch () at /lib64/libc.so.6
#1 0x00007fe7b23941ec in __internal_syscall_cancel () at /lib64/libc.so.6
#2 0x00007fe7b2394234 in __syscall_cancel () at /lib64/libc.so.6
#3 0x00007fe7b240ea66 in ppoll () at /lib64/libc.so.6
#4 0x00007fe7b2596360 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#5 0x00007fe7b2596423 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#6 0x00007fe7b2863a24 in virEventGLibRunOnce () at /lib64/libvirt.so.0
#7 0x000055d673423825 in vshEventLoop ()
#8 0x00007fe7b28c426d in virThreadHelper () at /lib64/libvirt.so.0
Today we announced "GitLab Act 2," which is just a fancy way of saying
we’re pivoting to AI because that’s where the hype is.
We’re gutting the company to move faster, which means we’re firing a lot
of people and hoping "AI agents" can do the work of the humans we just got
rid of. We’re taking the money we saved from those salaries to hire more
developers, but in much smaller, more stressed-out groups. We’ve got a big
roadmap to show off in London on June 10th, mostly to prove we haven't
completely lost the plot.
Let's see how bad QWEN3 is at a coding task ...
> please write me an nbdkit plugin in C which will serve the poem "the 12 days of christmas" in a disk image
Here is a complete C plugin for `nbdkit` that serves "The 12 Days of Christmas" as a disk image.
### Overview
* **Disk Size:** The plugin presents a virtual 1 MB block device.
* **Content:** The poem is embedded at the beginning of the disk image.
* **Padding:** Any data requested beyond the length of the poem is returned as null bytes (simulating a sparse disk).
struct canary {} canary;
#define check_expr_0(t, canary, ...)
#define check_expr_1(t, arg, canary, ...)
#define check_expr_2(t, arg0, arg1, canary, ...)
#define check_expr_3(t, arg0, arg1, arg2, canary, ...)
#define expr(t, ...) \
__extension__({ \
if (__builtin_constant_p (t)) { \
@rwmjones
rwmjones / gist:2e8f768f42bef00663a9de807cf39ee7
Last active October 17, 2023 17:57
tcg: Group pages into "super-pages" for jumps and invalidation
From 24547b9cf3c10b2e14c54ffadd462e58d7a3e8ce Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 17 Oct 2023 16:15:55 +0100
Subject: [PATCH] tcg: Group pages into "super-pages" for jumps and
invalidation
---
accel/tcg/tb-maint.c | 95 ++++++++++++++++++++++++++----------------
accel/tcg/translator.c | 7 +++-
2 files changed, 64 insertions(+), 38 deletions(-)
level=debug msg="CRC version: 2.7.1+8b30b973\n"
level=debug msg="OpenShift version: 4.11.0\n"
level=debug msg="Podman version: 4.1.1\n"
level=debug msg="Running 'crc start'"
level=debug msg="Total memory of system is 16378507264 bytes"
level=debug msg="No new version available. The latest version is 2.7.1"
level=debug msg="Checking file: /home/rjones/.crc/machines/crc/.crc-exist"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
level=debug msg="CRC version: 2.7.1+8b30b973\n"
level=debug msg="OpenShift version: 4.11.0\n"
level=debug msg="Podman version: 4.1.1\n"
level=debug msg="Running 'crc start'"
level=debug msg="Total memory of system is 16378507264 bytes"
level=debug msg="No new version available. The latest version is 2.7.1"
level=debug msg="Checking file: /home/rjones/.crc/machines/crc/.crc-exist"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
level=debug msg="CRC version: 2.7.1+a8e9854\n"
level=debug msg="OpenShift version: 4.11.0\n"
level=debug msg="Podman version: 4.1.1\n"
level=debug msg="Running 'crc setup'"
level=info msg="Using bundle path /home/rjones/.crc/cache/crc_libvirt_4.11.0_amd64.crcbundle"
level=debug msg="Checking if systemd-resolved.service is running"
level=debug msg="Running 'systemctl status systemd-resolved.service'"
level=debug msg="systemd-resolved.service is already running"
level=info msg="Checking if running as non-root"
level=info msg="Checking if running inside WSL2"