From: Paolo Bonzini <pbonzini@redhat.com>
To: "Stefan Weil" <sw@weilnetz.de>,
"Volker Rümelin" <vr_qemu@t-online.de>,
"Wenchao Wang" <wenchao.wang@intel.com>,
"Colin Xu" <colin.xu@intel.com>
Cc: Julio Faracco <jcfaracco@gmail.com>, QEMU <qemu-devel@nongnu.org>
Subject: Re: [PATCH] hax: Windows doesn't like posix device names
Date: Thu, 9 Apr 2020 15:38:19 +0200 [thread overview]
Message-ID: <87efcd40-4c66-28e3-40d0-d39c893ea477@redhat.com> (raw)
In-Reply-To: <f50df9e0-4115-c9fb-8823-4d0e7b254f1e@weilnetz.de>
On 09/04/20 15:24, Stefan Weil wrote:
>>> diff --git a/target/i386/hax-windows.c b/target/i386/hax-windows.c
>>> index 0ba488c468..863c2bcc19 100644
>>> --- a/target/i386/hax-windows.c
>>> +++ b/target/i386/hax-windows.c
>>> @@ -185,12 +185,12 @@ int hax_mod_version(struct hax_state *hax, struct hax_module_version *version)
>>>
>>> static char *hax_vm_devfs_string(int vm_id)
>>> {
>>> - return g_strdup_printf("/dev/hax_vm/vm%02d", vm_id);
>>> + return g_strdup_printf("\\\\.\\hax_vm%02d", vm_id);
>>> }
>>>
>>> static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id)
>>> {
>>> - return g_strdup_printf("/dev/hax_vm%02d/vcpu%02d", vm_id, vcpu_id);
>>> + return g_strdup_printf("\\\\.\\hax_vm%02d_vcpu%02d", vm_id, vcpu_id);
>>> }
>>>
>>> int hax_host_create_vm(struct hax_state *hax, int *vmid)
>>>
>> Queued, thanks.
>>
>> Paolo
>
> I am rather sure that macOS does not like Windows device names, so just
> reverting might be the wrong solution if HAX should work on Windows and
> on macOS.
This is hax-windows.c, macOS uses hax-posix.c. These days
Hypervisor.framework is probably a better choice than HAX on macOS, but
IIUC hax-posix.c also supports NetBSD so we're keeping it.
Paolo
> Is this relevant? Or should we drop HAX support for Windows? Personally
> I have no experience with hardware acceleration for QEMU on macOS.
next prev parent reply other threads:[~2020-04-09 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-22 21:02 [PATCH] hax: Windows doesn't like posix device names Volker Rümelin
2020-03-23 8:20 ` Paolo Bonzini
2020-04-09 13:24 ` Stefan Weil
2020-04-09 13:38 ` Paolo Bonzini [this message]
2020-04-10 9:21 ` Volker Rümelin
2020-04-13 18:17 ` Volker Rümelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efcd40-4c66-28e3-40d0-d39c893ea477@redhat.com \
--to=pbonzini@redhat.com \
--cc=colin.xu@intel.com \
--cc=jcfaracco@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
--cc=vr_qemu@t-online.de \
--cc=wenchao.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).