Gerd Hoffmann wrote: > I've made kvm_create() optionally skip the memory setup, so I can create > my own later on. That doesn't work though because creating the vcpu > fails then. Ugh, vmx grabs last 4 pages from slot 0 (looks like for real mode emulation). Thus memory must exist before creating the vcpu. Which makes fitting filemap-backed memory into the current libkvm init procedure a bit difficuilt. I've decided to split the kvm_create() into a bunch of pieces which can be called as needed, so I can first create the vm, then do my custom memory setup, then create the vcpu without making vmx unhappy ... cheers, Gerd