[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<SN6PR02MB4157AE454F412993BC1D4BFDD4F6A@SN6PR02MB4157.namprd02.prod.outlook.com>
Date: Fri, 17 Oct 2025 18:32:23 +0000
From: Michael Kelley <mhklinux@...look.com>
To: Naman Jain <namjain@...ux.microsoft.com>, "K . Y . Srinivasan"
<kys@...rosoft.com>, Haiyang Zhang <haiyangz@...rosoft.com>, Wei Liu
<wei.liu@...nel.org>, Dexuan Cui <decui@...rosoft.com>, Thomas Gleixner
<tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, Borislav Petkov
<bp@...en8.de>, Dave Hansen <dave.hansen@...ux.intel.com>, "H . Peter Anvin"
<hpa@...or.com>
CC: "linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"x86@...nel.org" <x86@...nel.org>, Mukesh Rathor
<mrathor@...ux.microsoft.com>, Stanislav Kinsburskii
<skinsburskii@...ux.microsoft.com>, Nuno Das Neves
<nunodasneves@...ux.microsoft.com>, Peter Zijlstra <peterz@...radead.org>,
Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>,
Christoph Hellwig <hch@...radead.org>, Saurabh Sengar
<ssengar@...ux.microsoft.com>, ALOK TIWARI <alok.a.tiwari@...cle.com>
Subject: RE: [PATCH v9 0/2] Drivers: hv: Introduce new driver - mshv_vtl
From: Naman Jain <namjain@...ux.microsoft.com> Sent: Friday, October 17, 2025 12:45 AM
>
> Introduce a new mshv_vtl driver to provide an interface for Virtual
> Machine Monitor like OpenVMM and its use as OpenHCL paravisor to
> control VTL0 (Virtual trust Level).
> Expose devices and support IOCTLs for features like VTL creation,
> VTL0 memory management, context switch, making hypercalls,
> mapping VTL0 address space to VTL2 userspace, getting new VMBus
> messages and channel events in VTL2 etc.
>
> OpenVMM : https://openvmm.dev/guide/
>
> Changes since v8:
> https://lore.kernel.org/all/20251013060353.67326-1-namjain@linux.microsoft.com/
> Addressed Sean's comments:
> * Removed forcing SIGPENDING, and other minor changes, in
> mshv_vtl_ioctl_return_to_lower_vtl after referring
> to Sean's earlier changes for xfer_to_guest_mode_handle_work.
>
> * Rebased and resolved merge conflicts, compilation errors on latest
> linux-next kernel tip, after Roman's Confidential VM changes,
> which merged recently. No functional changes.
Did your testing against the latest linux-next included testing with
CONFIG_X86_KERNEL_IBT=y? This is Indirect Branch Tracking, which would
have generated a fault with your v7 series and earlier because of the indirect
call instruction when doing VTL Return through the hypercall page (which
doesn't have the needed ENDBR64 instruction). But now that VTL Return is
doing a static call, that should be direct, which won't trigger an IBT fault.
To confirm that you really are running with IBT enabled, you should see
[ 0.047008] CET detected: Indirect Branch Tracking enabled
in the VTL2 dmesg output. And "ibt" should appear in the
"flags" output line of 'cat /proc/cpuinfo' (or the 'lscpu' command).
Michael
Powered by blists - more mailing lists