2016-06-24 18:41:20 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "virnetdev.h"
|
|
|
|
#include "internal.h"
|
2020-01-08 18:17:58 +00:00
|
|
|
#include "testutilshostcpus.h"
|
2016-06-24 18:41:20 +00:00
|
|
|
#include "util/viruuid.h"
|
2020-01-08 18:17:58 +00:00
|
|
|
#include "cpu/cpu.h"
|
2016-06-24 18:41:20 +00:00
|
|
|
|
|
|
|
#define VIR_FROM_THIS VIR_FROM_BHYVE
|
|
|
|
|
|
|
|
void
|
|
|
|
virMacAddrGenerate(const unsigned char prefix[VIR_MAC_PREFIX_BUFLEN],
|
2021-03-11 07:16:13 +00:00
|
|
|
virMacAddr *addr)
|
2016-06-24 18:41:20 +00:00
|
|
|
{
|
|
|
|
addr->addr[0] = prefix[0];
|
|
|
|
addr->addr[1] = prefix[1];
|
|
|
|
addr->addr[2] = prefix[2];
|
|
|
|
addr->addr[3] = 0;
|
|
|
|
addr->addr[4] = 0;
|
|
|
|
addr->addr[5] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
virUUIDGenerate(unsigned char *uuid)
|
|
|
|
{
|
|
|
|
if (virUUIDParse("c7a5fdbd-edaf-9455-926a-d65c16db1809", uuid) < 0)
|
|
|
|
return -1;
|
|
|
|
return 0;
|
|
|
|
}
|
2020-01-08 18:17:58 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCPUDef *
|
2020-01-08 18:17:58 +00:00
|
|
|
virCPUProbeHost(virArch arch)
|
|
|
|
{
|
|
|
|
return testUtilsHostCpusGetDefForArch(arch);
|
|
|
|
}
|