mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
kvm tools: Set hardcoded MAC to local administered
This sets bit one in the first octet to 1, which means that the hardcoded MAC we use is locally administered and wasn't assigned to us. Acked-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
+2
-2
@@ -46,8 +46,8 @@
|
||||
#define DEFAULT_NETWORK "user"
|
||||
#define DEFAULT_HOST_ADDR "192.168.33.1"
|
||||
#define DEFAULT_GUEST_ADDR "192.168.33.15"
|
||||
#define DEFAULT_GUEST_MAC "00:15:15:15:15:15"
|
||||
#define DEFAULT_HOST_MAC "00:01:01:01:01:01"
|
||||
#define DEFAULT_GUEST_MAC "02:15:15:15:15:15"
|
||||
#define DEFAULT_HOST_MAC "02:01:01:01:01:01"
|
||||
#define DEFAULT_SCRIPT "none"
|
||||
|
||||
#define MB_SHIFT (20)
|
||||
|
||||
@@ -219,9 +219,6 @@ static bool virtio_net_pci_io_in(struct ioport *ioport, struct kvm *kvm, u16 por
|
||||
kvm__irq_line(kvm, pci_header.irq_line, VIRTIO_IRQ_LOW);
|
||||
ndev.isr = VIRTIO_IRQ_LOW;
|
||||
break;
|
||||
case VIRTIO_MSI_CONFIG_VECTOR:
|
||||
ioport__write16(data, ndev.config_vector);
|
||||
break;
|
||||
default:
|
||||
ret = virtio_net_pci_io_device_specific_in(data, offset, size, count);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user