News: 0001480099

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Initial AMD SEV-SNP KVM Guest VM Support Merged Into Linux 6.11

([Virtualization] 5 Hours Ago KVM Updates)


The Kernel-based Virtual Machine (KVM) updates for Linux 6.11 have been merged and it's a very exciting one for AMD EPYC servers with [1]SEV-SNP guest VM support finally being in the mainline kernel.

Separately, merged for Linux 6.11 last week was [2]support for running the kernel in a SEV-SMP guest via SVSM as the Secure VM Service Module. Hitting Linux 6.11 Git this weekend meanwhile was the SEV-SNP guest support in the KVM side code.

The KVM guest support with Secure Encrypted Virtualization Secure Nested Paging (SEV-SNP) is very exciting with AMD long having maintained it out-of-tree while working through the lengthy review process across a number of revisions to get the code into shape for the mainline kernel.

Long story short, Linux 6.11 is a great kernel upgrade for those making use of virtualization on EPYC 7003 "Milan" processors and newer. The KVM pull requests sums up the initial AMD SEV-SNP guest VM support as:

"Base support for running SEV-SNP guests. API-wise, this includes a new KVM_X86_SNP_VM type, encrypting/measure the initial image into guest memory, and finalizing it before launching it. Internally, there are some gmem/mmu hooks needed to prepare gmem-allocated pages before mapping them into guest private memory ranges

This includes basic support for attestation guest requests, enough to say that KVM supports the GHCB 2.0 specification

There is no support yet for loading into the firmware those signing keys to be used for attestation requests, and therefore no need yet for the host to provide certificate data for those keys.

To support fetching certificate data from userspace, a new KVM exit type will be needed to handle fetching the certificate from userspace.

An attempt to define a new KVM_EXIT_COCO / KVM_EXIT_COCO_REQ_CERTS exit type to handle this was introduced in v1 of this patchset, but is still being discussed by community, so for now this patchset only implements a stub version of SNP Extended Guest Requests that does not provide certificate data"

So look for more improvements still over forthcoming kernel cycles.

Linux 6.11 KVM also adds ARM infrastructure for shadow stage-2 MMUs, fixes for x86 Xen emulation, NUMA-aware per-CPU save area allocations on AMD, enables halt poll shrinking by default, and various other improvements. See [3]this Git merge for more details on the Linux 6.11 KVM feature updates.



[1] https://www.phoronix.com/search/SEV-SNP

[2] https://www.phoronix.com/news/AMD-SEV-SNP-SVSM-Linux-6.11

[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2c9b3512402ed192d1f43f4531fb5da947e72bd0



drastic

Increased Electricity Consumption Blamed on Linux

WASHINGTON, D.C. -- The US Department of Energy claims Linux is partially
responsible for the increased demand for electricity during the past year.
Electricity use was up 2.5% from January to September of 1998 compared with
the same period in 1997. "While some of the increase can be attributed to
higher temperatures over the summer," one Department bureaucrat explained,
"Linux is certainly a contributor to the increased demand for power."

When asked for clarification, the bureaucrat responded, "In the past, most
PCs have been turned off when not in use. Linux users, on the other hand,
usually don't turn off their computers. They leave them on, hoping to
increase their uptime to impress their friends. And since Linux rarely
crashes the entire system, those computers stay on for weeks, months, even
years at a time. With Linux use continuing to grow, we expect demand for
electricity to increase steadily over the next several years."

In response to the news, several utility companies have announced plans to
give away free Linux CDs to paying customers who request them. One anonymous
executive said, "The more people who use Linux, the more power they consume.
The more electricity they use, the more money we make. It's a win-win
combination." Yesterday Linus Torvalds was nominated as a candidate for the
Assocation of American Utility Companies Person of the Year.