Skip to content

problem when launch pkvm #47

@n1ptune

Description

@n1ptune

Hi @maluka-dmytro ,
I'm trying to launch pkvm in a qemu vm with this command

sudo ./qemu/build/qemu-system-x86_64 -drive file=debian-13-nocloud-amd64.qcow2,format=qcow2 \
	-machine q35,accel=kvm,kernel-irqchip=split \
	-cpu host,kvm-pv-unhalt=off,kvm-pv-ipi=off,kvm-pv-sched-yield=off \
	-device intel-iommu,aw-bits=48 \
	-m 4G -smp 8 \
	-vga virtio \
	-device e1000,netdev=net0 \
	-netdev user,id=net0,hostfwd=tcp::2222-:22 \
	-serial mon:stdio -s \
	-monitor unix:qemu-monitor-socket,server,nowait \
	-kernel pKVM-IA-host/arch/x86_64/boot/bzImage \
	-append "root=/dev/sda1 console=ttyS0,115200n8 earlyprintk=ttyS0,115200n8 kvm-intel.pkvm=1 nokaslr" \
    -nographic 

pKVM-IA-host/arch/x86_64/boot/bzImage is the host kernel built with CONFIG_PKVM_INTEL=y using branch pvVMCS-POC-v6.12
but it keeps reporting errors like this

[    0.822607] DMAR: QI HEAD: UNKNOWN qw0 = 0x0, qw1 = 0x0
[    0.822607] DMAR: QI PRIOR: Invalidation Wait qw0 = 0x200000025, qw1 = 0x100cccc04
[    0.822607] DMAR: VT-d detected Invalidation Queue Error: Reason 0
[    0.822607] DMAR: QI HEAD: UNKNOWN qw0 = 0x0, qw1 = 0x0
[    0.822607] DMAR: QI PRIOR: Invalidation Wait qw0 = 0x200000025, qw1 = 0x100cccc04
[    0.822607] DMAR: VT-d detected Invalidation Queue Error: Reason 0
[    0.822607] DMAR: QI HEAD: UNKNOWN qw0 = 0x0, qw1 = 0x0
[    0.822607] DMAR: QI PRIOR: Invalidation Wait qw0 = 0x200000025, qw1 = 0x100cccc04
[    0.822607] DMAR: VT-d detected Invalidation Queue Error: Reason 0
[    0.822607] DMAR: QI HEAD: UNKNOWN qw0 = 0x0, qw1 = 0x0
[    0.822607] DMAR: QI PRIOR: Invalidation Wait qw0 = 0x200000025, qw1 = 0x100cccc04
[    0.822607] DMAR: VT-d detected Invalidation Queue Error: Reason 0
[    0.822607] DMAR: QI HEAD: UNKNOWN qw0 = 0x0, qw1 = 0x0
[    0.822607] DMAR: QI PRIOR: Invalidation Wait qw0 = 0x200000025, qw1 = 0x100cccc04
[    0.822607] DMAR: VT-d detected Invalidation Queue Error: Reason 0
[    0.822607] DMAR: QI HEAD: UNKNOWN qw0 = 0x0, qw1 = 0x0

it seems like that the iommu problem.
So i try not to use kvm but use qemu tcg instead.
But i find qemu tcg don't support vmx

qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.vmx [bit 5]

So how do you launch a pkvm host.Do I have to run it on real hardware only?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions