Il 13/06/2013 03:02, Markus Armbruster ha scritto:
> + } else if (kvm_enabled() && kvm_arch_ram_alloc) {
> + /* some s390/kvm configurations have special constraints */
> + if (mem_path) {
> + fprintf(stderr,
> + "-mem-path not supported with this version of KVM\n");
> + exit(1);
> + }
> + new_block->host = kvm_arch_ram_alloc(size);
> + memory_try_enable_merging(new_block->host, size);
Uh oh, now I see why you wanted the hook as a function pointer. Can you
instead pass the file descriptor to kvm_ram_alloc?
Paolo