On Wed, Feb 07, 2018 at 12:15:50PM +0100, Paolo Bonzini wrote:
> On 06/02/2018 21:30, Roman Kagan wrote:
> > + if (strcmp(arch, "i386") && strcmp(arch, "x86_64")) {
> > + g_printerr("Hyper-V / VMBus are only available on x86\n");
> > + exit(EXIT_FAILURE);
> > + }
>
> This shouldn't be needed.
>
> > +
> > + if (access("/dev/kvm", R_OK | W_OK)) {
>
> Maybe try opening it too? In theory you could have a /dev/kvm device
> that triggers loading the kvm module (see
> https://github.com/systemd/systemd/pull/7795 for gory details).
Makes sense, will replace with open(O_RDWR).
Thanks,
Roman.