Merge pull request #11468 from Apokleos/fix-sharefs-none

runtime-rs: Support shared fs with "none" on non-tee platforms
This commit is contained in:
Alex Lyn 2025-06-26 15:37:44 +08:00 committed by GitHub
commit 9a1d4fc5d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -389,7 +389,9 @@ impl QemuInner {
let mut caps = Capabilities::default();
// Confidential Guest doesn't permit virtio-fs.
let flags = if self.hypervisor_config().security_info.confidential_guest {
let flags = if self.hypervisor_config().security_info.confidential_guest
|| self.hypervisor_config().shared_fs.shared_fs.is_none()
{
CapabilityBits::BlockDeviceSupport | CapabilityBits::BlockDeviceHotplugSupport
} else {
CapabilityBits::BlockDeviceSupport