<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/amd64/vmm, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-07-20T21:51:02Z</updated>
<entry>
<title>amd64: FRED support</title>
<updated>2026-07-20T21:51:02Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-02-13T11:24:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e93f5e4d6932c423b89dff8fc08d86f8bdeb7b9'/>
<id>urn:sha1:6e93f5e4d6932c423b89dff8fc08d86f8bdeb7b9</id>
<content type='text'>
FRED support as defined starting from the SDM rev. 90, requires a new
'events' entry point to receive user and kernel mode exceptions and
interrupts notifications from the hardware.  A minimal asm trampoline is
enough, rest can be implemented in C due to the clean FRED organization
of the event reporting.

The syscall entry is handled by a microptimized assembly path, directly
calling into the amd64_syscall() handler, instead of the generic events
entry point.

Tested by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D55829
</content>
</entry>
<entry>
<title>amd64/vmm: Fix ppt_unmap_mmio() after commit 36b855f18925</title>
<updated>2026-05-22T22:18:48Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-05-22T22:18:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b133353310920aa823b1b5f83a308d0762f3bba3'/>
<id>urn:sha1:b133353310920aa823b1b5f83a308d0762f3bba3</id>
<content type='text'>
Fixes:		36b855f18925 ("amd64/vmm: Lock global PCI passthrough structures")
MFC after:	3 days
Reported by:	bz
</content>
</entry>
<entry>
<title>kernel: address executable stack warnings in amd64 gcc build</title>
<updated>2026-05-16T20:24:45Z</updated>
<author>
<name>Ryan Libby</name>
<email>rlibby@FreeBSD.org</email>
</author>
<published>2026-05-16T20:24:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=755c1e039adfd68ecf4d5954e13fe54263c34a03'/>
<id>urn:sha1:755c1e039adfd68ecf4d5954e13fe54263c34a03</id>
<content type='text'>
Mark assembly files as not requiring executable stacks.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D56946
</content>
</entry>
<entry>
<title>PHYS_TO_DMAP: Return a void * instead of a vm_offset_t</title>
<updated>2026-04-23T17:05:54Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-04-23T17:05:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fe3e92e6868dce2ed94c98428b8df1f27ed3ef63'/>
<id>urn:sha1:fe3e92e6868dce2ed94c98428b8df1f27ed3ef63</id>
<content type='text'>
Add a new PHYS_TO_DMAP_ADDR that still returns an address for use in
places that only need an address and not a pointer.

Effort:		CHERI upstreaming
Reviewed by:	kib
Sponsored by:	AFRL, DARPA
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2068
</content>
</entry>
<entry>
<title>vmm: Add missing AVX instructions for AVX512 in cpuid stdext</title>
<updated>2026-03-30T07:19:44Z</updated>
<author>
<name>ShengYi Hung</name>
<email>aokblast@FreeBSD.org</email>
</author>
<published>2026-03-22T02:26:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e6eba5076929d0b193c9c94b2658c7e8f5da0669'/>
<id>urn:sha1:e6eba5076929d0b193c9c94b2658c7e8f5da0669</id>
<content type='text'>
Reported by:    Tom &lt;freebsd@fizz.buzz&gt;
Reviewed by:    markj
Tested by:      Tom &lt;freebsd@fizz.buzz&gt;
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56021
</content>
</entry>
<entry>
<title>vmm: Move defines from x86.c to x86/bhyve.h</title>
<updated>2026-03-28T05:54:49Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2026-02-22T04:09:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49b6254b3e09ee741f456617111ecb18803459fb'/>
<id>urn:sha1:49b6254b3e09ee741f456617111ecb18803459fb</id>
<content type='text'>
The values CPUID_BHYVE_FEATURES and CPUID_BHYVE_FEAT_EXT_DEST_ID are
useful for guests, not just hosts; so they belong in a header file in
sys/x86/include rather than simply in the .c file implementing the
bhyve host side.

The original addition of these defines took place without adding a
copyright statement, but since I'm moving them into a new file I've
added the original author's standard copyright (Amazon).

MFC after:	3 weeks
Fixes:	313a68ea20b4 ("bhyve: Add CPUID_BHYVE_FEATURES leaf")
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D55430
</content>
</entry>
<entry>
<title>vmm: Allow the use of PCI passthrough in a jail</title>
<updated>2026-02-16T15:28:49Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-02-16T14:56:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c71354030a26900e564f0c80a8abdff7e77b3c9e'/>
<id>urn:sha1:c71354030a26900e564f0c80a8abdff7e77b3c9e</id>
<content type='text'>
After commit e11768e94787 ("vmm: Add PRIV_DRIVER checks for passthru
ioctls"), it is not possible to use PCI passthru from jails, as
PRIV_DRIVER is not granted to jails.  Apparently some users expect this
to work, understanding that jailing bhyve provides little security
benefit in this configuration.

I believe we should disable ppt access in jails even when allow.vmm is
configured.  To provide an escape hatch for users, add a new
allow.vmm_ppt jail configuration knob, and check it when handling ppt
ioctls in jails.  Also add a new PRIV_VMM_PPTDEV to replace the use of
PRIV_DRIVER.

PR:		292750
Reviewed by:	corvink
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D55066
</content>
</entry>
<entry>
<title>amd64/vmm: Lock global PCI passthrough structures</title>
<updated>2026-02-06T15:38:51Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-02-06T15:29:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=36b855f1892575cbfe1cd5455b989bfc8ae07502'/>
<id>urn:sha1:36b855f1892575cbfe1cd5455b989bfc8ae07502</id>
<content type='text'>
There is a global list of ppt-claimed devices, accessed via several
vmm ioctls.  The ioctls are locked by per-VM locks, but this isn't
sufficient to prevent multiple VMs from trying to bind a given device.

Add a sleepable lock and use that to synchronize all access to ppt
devices.

Reviewed by:	corvink, jhb
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D55065
</content>
</entry>
<entry>
<title>amd64: Fix sys/pcpu.h usage in vmm_host.h and md_var.h</title>
<updated>2026-01-24T01:29:45Z</updated>
<author>
<name>Hans Rosenfeld</name>
<email>rosenfeld@grumpf.hope-2000.org</email>
</author>
<published>2026-01-24T01:29:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=202e3109a9d6699cf78e83f9047cefeb07659767'/>
<id>urn:sha1:202e3109a9d6699cf78e83f9047cefeb07659767</id>
<content type='text'>
Include sys/pcpu in vmm_host.h as its structs and functions are used
there, and add a forward declaration of struct pcpu to md_var.h as it
is used in some function prototypes.

Reviewed by:	corvink, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D51550
</content>
</entry>
<entry>
<title>amd64/vmm: remove unused static function vcpu_state2str()</title>
<updated>2026-01-19T16:45:40Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-01-19T16:25:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=002c50ea23b99b415b1b392d3dd5ea6223c3a74c'/>
<id>urn:sha1:002c50ea23b99b415b1b392d3dd5ea6223c3a74c</id>
<content type='text'>
It is guarded by #ifdef KTR, so the warning does not show up under usual
kernel configs.

Fixes:	ed85203fb7a0334041db6da07e45ddda4caef13d
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D54781
</content>
</entry>
</feed>
