<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/include/xen, branch stable</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/include/xen?h=stable</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/include/xen?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2026-10-09T07:58:46Z</updated>
<entry>
<title>xen: fix typos in comments</title>
<updated>2026-10-09T07:58:46Z</updated>
<author>
<name>Hemanth Selam</name>
<email>hemanth.selam@gmail.com</email>
</author>
<published>2026-09-07T06:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=71d59fc2a5e357ac03bb2ee1522a7c1f8bd0c34f'/>
<id>urn:sha1:71d59fc2a5e357ac03bb2ee1522a7c1f8bd0c34f</id>
<content type='text'>
Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam &lt;hemanth.selam@gmail.com&gt;
Reviewed-by: Frediano Ziglio &lt;freddy77@gmail.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260907063531.23981-1-hemanth.selam@gmail.com&gt;
</content>
</entry>
<entry>
<title>xen: remove unused hvm_vcpu.h header</title>
<updated>2026-10-09T07:58:46Z</updated>
<author>
<name>Ethan Nelson-Moore</name>
<email>enelsonmoore@gmail.com</email>
</author>
<published>2026-09-19T07:46:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=fe2eea9afbc4727ec972ec8dd4ff1480a5333bab'/>
<id>urn:sha1:fe2eea9afbc4727ec972ec8dd4ff1480a5333bab</id>
<content type='text'>
The &lt;xen/interface/hvm/hvm_vcpu.h&gt; header appears to have been unused
ever since it was added to the kernel in commit cee2cfb7d18d ("xen/pvh:
Import PVH-related Xen public interfaces"). Remove it.

Signed-off-by: Ethan Nelson-Moore &lt;enelsonmoore@gmail.com&gt;
Reviewed-by: Stefano Stabellini &lt;sstabellini@kernel.org&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260919074650.453007-1-enelsonmoore@gmail.com&gt;
</content>
</entry>
<entry>
<title>xen: Drop CONFIG_XEN_AUTO_XLATE</title>
<updated>2026-08-06T11:18:32Z</updated>
<author>
<name>Juergen Gross</name>
<email>jgross@suse.com</email>
</author>
<published>2026-08-05T08:21:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=4d3d4ee612e22f396744b433ad901e986cb60bcf'/>
<id>urn:sha1:4d3d4ee612e22f396744b433ad901e986cb60bcf</id>
<content type='text'>
CONFIG_XEN_AUTO_XLATE is referenced only in code built with CONFIG_XEN
enabled. As it is enabled for all architectures supporting Xen, it can
be just dropped.

Reviewed-by: Stefano Stabellini &lt;sstabellini@kernel.org&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260805082137.1214967-4-jgross@suse.com&gt;
</content>
</entry>
<entry>
<title>xen: Drop CONFIG_XEN_PVHVM</title>
<updated>2026-08-06T11:18:31Z</updated>
<author>
<name>Juergen Gross</name>
<email>jgross@suse.com</email>
</author>
<published>2026-08-05T08:21:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=0d91b71af94734a10f1dcc0ae317923f84ca43ee'/>
<id>urn:sha1:0d91b71af94734a10f1dcc0ae317923f84ca43ee</id>
<content type='text'>
On x86 CONFIG_XEN_PVHVM is now a synonym of CONFIG_XEN.

In Xen specific x86 code it can be just dropped, in non-Xen specific
x86 code it can be replaced with CONFIG_XEN.

In architecture independent code it is used only where CONFIG_XEN is
defined, so it can be replaced with CONFIG_X86 there.

Reviewed-by: Stefano Stabellini &lt;sstabellini@kernel.org&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260805082137.1214967-3-jgross@suse.com&gt;
</content>
</entry>
<entry>
<title>xen: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files</title>
<updated>2026-07-01T07:49:52Z</updated>
<author>
<name>Thomas Huth</name>
<email>thuth@redhat.com</email>
</author>
<published>2026-06-19T11:45:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=26d060ba39354eec0345fb73b5f8309edd6ec82c'/>
<id>urn:sha1:26d060ba39354eec0345fb73b5f8309edd6ec82c</id>
<content type='text'>
While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembly code, __ASSEMBLY__ is a
macro that only gets defined by the Makefiles in the kernel.
This can be very confusing when switching between userspace
and kernelspace coding, or when dealing with uapi headers that
rather should use __ASSEMBLER__ instead. So let's standardize now
on the __ASSEMBLER__ macro that is provided by the compilers.

This is a completely mechanical patch (done with a simple "sed -i"
statement).

Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260619114547.159637-1-thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>xen: constify xsd_errors array</title>
<updated>2026-06-08T07:00:06Z</updated>
<author>
<name>Len Bao</name>
<email>len.bao@gmx.us</email>
</author>
<published>2026-05-23T14:08:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=c1fd2c9f7f855caace046c789cdbf24628565d50'/>
<id>urn:sha1:c1fd2c9f7f855caace046c789cdbf24628565d50</id>
<content type='text'>
The 'xsd_errors' array is initialized in the declaration and never
changed. So, constify it to reduce the attack surface.

At the same time, use the preferred '__maybe_unused' form over the
'__attribute__((unused))' form.

Signed-off-by: Len Bao &lt;len.bao@gmx.us&gt;
Reviewed-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260523140809.30915-1-len.bao@gmx.us&gt;
</content>
</entry>
<entry>
<title>xen/arm: Replace __ASSEMBLY__ with __ASSEMBLER__ in interface.h</title>
<updated>2026-05-12T15:31:38Z</updated>
<author>
<name>Thomas Huth</name>
<email>thuth@redhat.com</email>
</author>
<published>2026-04-21T14:27:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=11f152c0acaa924d93339000cb785d34e003aff5'/>
<id>urn:sha1:11f152c0acaa924d93339000cb785d34e003aff5</id>
<content type='text'>
While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembly code, __ASSEMBLY__ is a
macro that only gets defined by the Makefiles in the kernel.
This can be very confusing when switching between userspace
and kernelspace coding, or when dealing with uapi headers that
rather should use __ASSEMBLER__ instead. So let's standardize now
on the __ASSEMBLER__ macro that is provided by the compilers.

Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: Juergen Gross &lt;jgross@suse.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260421142701.548978-1-thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>xen/grant-table: guard gnttab_suspend/resume with CONFIG_HIBERNATE_CALLBACKS</title>
<updated>2026-04-10T09:07:21Z</updated>
<author>
<name>Pengpeng Hou</name>
<email>pengpeng.hou@isrc.iscas.ac.cn</email>
</author>
<published>2026-03-10T08:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=3f100dd61ad4ee7c1fb6a44775a928dcdba7515b'/>
<id>urn:sha1:3f100dd61ad4ee7c1fb6a44775a928dcdba7515b</id>
<content type='text'>
In current linux.git, gnttab_suspend() and gnttab_resume() are defined
and declared unconditionally. However, their only in-tree callers reside
in drivers/xen/manage.c, which are guarded by CONFIG_HIBERNATE_CALLBACKS.

Match the helper scope to their callers by wrapping the definitions in
CONFIG_HIBERNATE_CALLBACKS and providing no-op stubs in the header. This
fixes the config-scope mismatch and reduces the code footprint when
hibernation callbacks are disabled.

Signed-off-by: Pengpeng Hou &lt;pengpeng.hou@isrc.iscas.ac.cn&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260310080800.742223-1-pengpeng.hou@isrc.iscas.ac.cn&gt;
</content>
</entry>
<entry>
<title>hvc/xen: Check console connection flag</title>
<updated>2026-04-10T09:06:17Z</updated>
<author>
<name>Jason Andryuk</name>
<email>jason.andryuk@amd.com</email>
</author>
<published>2026-03-18T23:53:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=bdd5de3d9e2da45852d0d21313af3a02f0e0626e'/>
<id>urn:sha1:bdd5de3d9e2da45852d0d21313af3a02f0e0626e</id>
<content type='text'>
When the console out buffer is filled, __write_console() will return 0
as it cannot send any data.  domU_write_console() will then spin in
`while (len)` as len doesn't decrement until xenconsoled attaches.  This
would block a domU and nullify the parallelism of Hyperlaunch until dom0
userspace starts xenconsoled, which empties the buffer.

Xen 4.21 added a connection field to the xen console page.  This is set
to XENCONSOLE_DISCONNECTED (1) when a domain is built, and xenconsoled
will set it to XENCONSOLE_CONNECTED (0) when it connects.

Update the hvc_xen driver to check the field.  When the field is
disconnected, drop the write with -ENOTCONN.  We only drop the write
when the field is XENCONSOLE_DISCONNECTED (1) to try for maximum
compatibility.  The Xen toolstack has historically zero initialized the
console, so it should see XENCONSOLE_CONNECTED (0) by default.  If an
implemenation used uninitialized memory, only checking for
XENCONSOLE_DISCONNECTED could have the lowest chance of not connecting.

This lets the hyperlaunched domU boot without stalling.  Once dom0
starts xenconsoled, xl console can be used to access the domU's hvc0.

Paritally sync console.h from xen.git to bring in the new field.

Reviewed-by: Stefano Stabellini &lt;sstabellini@kernel.org&gt;
Signed-off-by: Jason Andryuk &lt;jason.andryuk@amd.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260318235326.14568-1-jason.andryuk@amd.com&gt;
</content>
</entry>
<entry>
<title>xen/xenbus: better handle backend crash</title>
<updated>2026-03-04T14:31:40Z</updated>
<author>
<name>Juergen Gross</name>
<email>jgross@suse.com</email>
</author>
<published>2026-02-18T09:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=e2dcf9065536ab4a1b00828ff0d19f7d282dfecc'/>
<id>urn:sha1:e2dcf9065536ab4a1b00828ff0d19f7d282dfecc</id>
<content type='text'>
When the backend domain crashes, coordinated device cleanup is not
possible (as it involves waiting for the backend state change). In that
case, toolstack forcefully removes frontend xenstore entries.
xenbus_dev_changed() handles this case, and triggers device cleanup.
It's possible that toolstack manages to connect new device in that
place, before xenbus_dev_changed() notices the old one is missing. If
that happens, new one won't be probed and will forever remain in
XenbusStateInitialising.

Fix this by checking the frontend's state in Xenstore. In case it has
been reset to XenbusStateInitialising by Xen tools, consider this
being the result of an unplug+plug operation.

It's important that cleanup on such unplug doesn't modify Xenstore
entries (especially the "state" key) as it belong to the new device
to be probed - changing it would derail establishing connection to the
new backend (most likely, closing the device before it was even
connected). Handle this case by setting new xenbus_device-&gt;vanished
flag to true, and check it before changing state entry.

And even if xenbus_dev_changed() correctly detects the device was
forcefully removed, the cleanup handling is still racy. Since this whole
handling doesn't happened in a single Xenstore transaction, it's possible
that toolstack might put a new device there already. Avoid re-creating
the state key (which in the case of loosing the race would actually
close newly attached device).

The problem does not apply to frontend domain crash, as this case
involves coordinated cleanup.

Problem originally reported at
https://lore.kernel.org/xen-devel/aOZvivyZ9YhVWDLN@mail-itl/T/#t,
including reproduction steps.

Based-on-patch-by: Marek Marczykowski-Górecki &lt;marmarek@invisiblethingslab.com&gt;
Tested-by: Marek Marczykowski-Górecki &lt;marmarek@invisiblethingslab.com&gt;
Signed-off-by: Juergen Gross &lt;jgross@suse.com&gt;
Message-ID: &lt;20260218095205.453657-3-jgross@suse.com&gt;
</content>
</entry>
</feed>
