qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 5/5] Plumb the HAXM-based hardware accelerati


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 5/5] Plumb the HAXM-based hardware acceleration support
Date: Mon, 14 Nov 2016 12:56:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0


On 11/11/2016 12:28, Vincent Palatin wrote:
> +            /*
> +             * In Hax, the qemu allocate the virtual address, and HAX kernel
> +             * populate the memory with physical memory. Currently we have no
> +             * paging, so user should make sure enough free memory in advance
> +             */
> +            if (hax_enabled()) {
> +                int ret;
> +                ret = hax_populate_ram((uint64_t)(uintptr_t)new_block->host,
> +                                       new_block->max_length);
> +                if (ret < 0) {
> +                    error_setg(errp, "Hax failed to populate ram");
> +                    return;
> +                }
> +            }
> +
>              if (!new_block->host) {
>                  error_setg_errno(errp, errno,
>                                   "cannot set up guest memory '%s'",

The hax_enabled() check should be after the "if (!new_block->host)" block.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]