vendor: Update hyperkit go bindings

The updated bindings primarily allow compilation on non-darwin
operating systems.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer
2017-03-30 17:00:07 +01:00
parent 13e3d88bdd
commit 024b1d6d98
6 changed files with 13 additions and 16 deletions

View File

@@ -41,7 +41,6 @@
#define VMEXIT_ABORT (-1)
extern int guest_ncpus;
extern int print_mac;
extern char *guest_uuid_str;
extern char *vmname;

View File

@@ -737,7 +737,7 @@ void dsdt_fixup(int bus, uint16_t iobase, uint16_t iolimit, uint32_t membase32,
{
if (bus != 0) {
fprintf(stderr, "DSDT, unsupported PCI bus (%d)\n", bus);
exit(-1);
exit(1);
}
acpitbl_write16(dsdt, 0xb6, iobase);

View File

@@ -408,7 +408,7 @@ mevent_dispatch(void)
ret = pipe(mevent_pipefd);
if (ret < 0) {
perror("pipe");
exit(0);
exit(1);
}
/*

View File

@@ -728,14 +728,6 @@ pci_vtnet_init(struct pci_devinst *pi, UNUSED char *opts)
return (-1);
}
if (print_mac == 1)
{
printf("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
sc->vms->mac[0], sc->vms->mac[1], sc->vms->mac[2],
sc->vms->mac[3], sc->vms->mac[4], sc->vms->mac[5]);
exit(0);
}
sc->vsc_config.mac[0] = sc->vms->mac[0];
sc->vsc_config.mac[1] = sc->vms->mac[1];
sc->vsc_config.mac[2] = sc->vms->mac[2];