xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Joshua Perrett <jperrett256@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Joshua Perrett <jperrett256@gmail.com>,
	Marcus Granado <marcus.granado@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>
Subject: [PATCH v4 0/2] libxl: deterministic mac addresses
Date: Wed, 12 Sep 2018 17:40:35 +0000	[thread overview]
Message-ID: <cover.1536772417.git.jperrett256@gmail.com> (raw)

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

             reply	other threads:[~2018-09-12 17:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12 17:40 Joshua Perrett [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1536772417.git.jperrett256@gmail.com \
    --to=jperrett256@gmail.com \
    --cc=george.dunlap@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=marcus.granado@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).