From patchwork Thu Jun 30 08:41:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 932382 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5U8jnlc024593 for ; Thu, 30 Jun 2011 08:45:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758929Ab1F3Ipq (ORCPT ); Thu, 30 Jun 2011 04:45:46 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:43568 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757363Ab1F3Ipp (ORCPT ); Thu, 30 Jun 2011 04:45:45 -0400 Received: by mail-iw0-f174.google.com with SMTP id 6so1718423iwn.19 for ; Thu, 30 Jun 2011 01:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=BM1g1cUJL2xxwCsoYZhHF9OHbYUL1cReBOE0f68h9/g=; b=WcmElUQAcfyEa5LagYV1FcbLoh3C8pWYSycO1u8sLkQ1MUiYlhzmykbihB7YFrA+J1 8366k2DUQ5bhQQKFStHN97e+nfzLLFFD6ITHl87ixkktREntB5eCZYXnV3SJCs+116/a Wx3xYTzcXRwhleo+68lIcKtGeDA0Au6sYWLJM= Received: by 10.42.197.199 with SMTP id el7mr1795418icb.237.1309423545537; Thu, 30 Jun 2011 01:45:45 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id d6sm1967338icx.1.2011.06.30.01.45.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 01:45:45 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH v2 27/31] kvm tools: Change default guest MAC address to 00:15:15:15:15:15 Date: Thu, 30 Jun 2011 16:41:15 +0800 Message-Id: <1309423279-3093-28-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309423279-3093-1-git-send-email-asias.hejun@gmail.com> References: <1309423279-3093-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Jun 2011 08:45:49 +0000 (UTC) This patch makes guest MAC address the last portion of default guest IP address which is 192.168.33.15. Signed-off-by: Asias He --- tools/kvm/kvm-run.c | 2 +- tools/kvm/virtio/net.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 0ac2ed8..a16a482 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -44,7 +44,7 @@ #define DEFAULT_CONSOLE "serial" #define DEFAULT_NETWORK "virtio" #define DEFAULT_HOST_ADDR "192.168.33.2" -#define DEFAULT_GUEST_MAC "00:11:22:33:44:55" +#define DEFAULT_GUEST_MAC "00:15:15:15:15:15" #define DEFAULT_SCRIPT "none" #define MB_SHIFT (20) diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index 7eebee0..38f0c9b 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -73,7 +73,7 @@ static struct net_dev ndev = { .mutex = PTHREAD_MUTEX_INITIALIZER, .config = { - .mac = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 }, + .mac = {0x00, 0x15, 0x15, 0x15, 0x15, 0x15}, .status = VIRTIO_NET_S_LINK_UP, }, .host_features = 1UL << VIRTIO_NET_F_MAC