[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1557847002-23519-1-git-send-email-sironi@amazon.de>
Date: Tue, 14 May 2019 17:16:40 +0200
From: Filippo Sironi <sironi@...zon.de>
To: linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
borntraeger@...ibm.com, boris.ostrovsky@...cle.com,
cohuck@...hat.com, konrad.wilk@...cle.com,
xen-devel@...ts.xenproject.org, vasu.srinivasan@...cle.com
Subject: KVM: Start populating /sys/hypervisor with KVM entries
Long-time Xen HVM and Xen PV users are missing /sys/hypervisor entries when
moving to KVM. One report is about getting the VM UUID. The VM UUID can
already be retrieved using /sys/devices/virtual/dmi/id/product_uuid. This has
two downsides: (1) it requires root privileges and (2) it is only available on
KVM and Xen HVM.
By exposing /sys/hypervisor/uuid when running on KVM as well, we provide an
interface that's functional for KVM, Xen HVM, and Xen PV. Let's do so by
providing arch-specific hooks so that different architectures can implement the
hooks in different ways.
Further work can be done by consolidating the creation of the basic
/sys/hypervisor across hypervisors.
Filippo Sironi (2):
KVM: Start populating /sys/hypervisor with KVM entries
KVM: x86: Implement the arch-specific hook to report the VM UUID
Powered by blists - more mailing lists