xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] libxl: deterministic mac addresses
@ 2018-09-12 17:40 Joshua Perrett
  2018-09-12 17:40 ` [PATCH v4 1/2] Created tools/shared directory containing MD5 files Joshua Perrett
  2018-09-12 17:40 ` [PATCH v4 2/2] libxl: made vm mac address assignment deterministic Joshua Perrett
  0 siblings, 2 replies; 5+ messages in thread
From: Joshua Perrett @ 2018-09-12 17:40 UTC (permalink / raw)
  To: xen-devel
  Cc: Wei Liu, Ian Jackson, Joshua Perrett, Marcus Granado,
	George Dunlap

The patch has now been split into two parts. One adds the MD5 files to
a shared directory in tools, so that it can potentially be reused. The
second patch makes mac addresses deterministic. It still uses a host 
mac address, seeing as gethostid() won't work (as George explained). 
The code should now work the same on both little endian and big endian 
machines.

Joshua Perrett (2):
  Created tools/shared directory containing MD5 files
  libxl: made vm mac address assignment deterministic

 tools/Makefile               |   1 +
 tools/Rules.mk               |   1 +
 tools/libxl/Makefile         |   2 +-
 tools/libxl/libxl_freebsd.c  |   5 +
 tools/libxl/libxl_internal.h |   5 +
 tools/libxl/libxl_linux.c    |  31 ++++-
 tools/libxl/libxl_netbsd.c   |   5 +
 tools/libxl/libxl_nic.c      |  31 ++++-
 tools/shared/Makefile        |  21 ++++
 tools/shared/md5.c           | 266 +++++++++++++++++++++++++++++++++++++++++++
 tools/shared/md5.h           |  26 +++++
 11 files changed, 386 insertions(+), 8 deletions(-)
 create mode 100644 tools/shared/Makefile
 create mode 100644 tools/shared/md5.c
 create mode 100644 tools/shared/md5.h

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-20 16:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-12 17:40 [PATCH v4 0/2] libxl: deterministic mac addresses Joshua Perrett
2018-09-12 17:40 ` [PATCH v4 1/2] Created tools/shared directory containing MD5 files Joshua Perrett
2018-09-20 16:18   ` Wei Liu
2018-09-12 17:40 ` [PATCH v4 2/2] libxl: made vm mac address assignment deterministic Joshua Perrett
2018-09-20 16:20   ` Wei Liu

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).