All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind
From: Stefan Weil @ 2011-10-31 19:01 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Avi Kivity, Alexander Graf, qemu-devel
In-Reply-To: <m3bosxko90.fsf@blackfin.pond.sub.org>

Am 31.10.2011 19:30, schrieb Markus Armbruster:
> Copies are evil because we need to pick the one version that's right for
> all our users. Repeatedly.
>
> That's okay (sort of) when there's a tight coupling, and there's really
> only one admissible version.
>
> Or it may be a lesser evil when the thing copied isn't readily available
> (not packaged in common distros).
>
> I can't see either of that for valgrind.h.

Let me add some piece of information for the further discussion.

valgrind.h is an official interface. It is designed to be compatible
across versions.

Initially, I planned to add a valgrind.h copy from my Linux distro.
When I looked at the Valgrind repository, I noticed that the latest
version of valgrind.h had added support for more hosts (ppc, s390)
which I expect will be needed for QEMU soon, so I took this version.

So the decision which copy should be taken is simple: any copy
works as long as it supports your host.

Cheers,
Stefan Weil

^ permalink raw reply

* Re: [PATCH cover letter] Bluetooth: Revert: Fix L2CAP connection ...
From: Gustavo Padovan @ 2011-10-31 19:01 UTC (permalink / raw)
  To: Arek Lichwa; +Cc: linux-bluetooth, iliak, ulrik.lauren
In-Reply-To: <1319621002-7122-1-git-send-email-arkadiusz.lichwa@tieto.com>

Hi Arek,

* Arek Lichwa <arkadiusz.lichwa@tieto.com> [2011-10-26 11:23:21 +0200]:

> Hi
> 
> We found during testing problem when setting rfcomm (SPP) channel between
> two 2.1 devices. 
> The test case always failed mostly saying security block on l2cap level 
> but sometimes the fail root cause was 'Command not understood' on l2cap 
> as well.
> Analyzing security block issue, I found that there's unencrypted link when
> l2cap command 'connection request' is sent to remote.
> The second issue with 'command not understood' has turn out to be related to 
> expiration of l2cap timer and its implications.
> 
> Solution that I found to fix the problem seems to be related to old commit 
> 330605423ca6eafafb8dcc27502bce1c585d1b06 made by Ilia Kolomisnky. When there's
> authentication ongoing, 'encryption pending' should be turn on, otherwise 
> there're situations when link stays unencrypted. 
> The issue with timer expiration is related to Andrzej Kaczmarek's patch 
> sent to community a couple days ago (~ 2011/10/20). 
> This patch actually recalculates (repairs) timer values on l2cap which were 
> wrongly converted before. 
> With this patch the expiration issue disappears during the test case 
> I've made, otherwise just reverting 330605423ca6eafafb8dcc27502bce1c585d1b06
> is not enough, since timer issue blocks very often passing the test case.

Are you saying that Andrzej's patch together with revert of 330605423 fixes
the problem? and are you sure that we are not creating any new regression?

	Gustavo

^ permalink raw reply

* Re: HT (Hyper Threading) aware process scheduling doesn't work as it should
From: Chris Friesen @ 2011-10-31 18:59 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh; +Cc: Artem S. Tashkinov, linux-kernel
In-Reply-To: <20111030212644.GA7106@khazad-dum.debian.net>

On 10/30/2011 03:26 PM, Henrique de Moraes Holschuh wrote:
> On Sun, 30 Oct 2011, Artem S. Tashkinov wrote:
>> I've found out that even on Linux 3.0.8 the process scheduler doesn't correctly distributes
>> the load amongst virtual CPUs. E.g. on a 4-core system (8 total virtual CPUs) the process
>> scheduler often run some instances of four different tasks on the same physical CPU.
>
> Please check how your sched_mc_power_savings and sched_smt_power_savings
> tunables.   Here's the doc from lesswats.org:
>
> 'sched_mc_power_savings' tunable under /sys/devices/system/cpu/ controls
> the Multi-core related tunable. By default, this is set to '0' (for
> optimal performance). By setting this to '1', under light load
> scenarios, the process load is distributed such that all the cores in a
> processor package are busy before distributing the process load to other
> processor packages.
>
> [...]
>
> 'sched_smt_power_savings' tunable under /sys/devices/system/cpu/
> controls the multi-threading related tunable. By default, this is set to
> '0' (for optimal performance). By setting this to '1', under light load
> scenarios, the process load is distributed such that all the threads in
> a core and all the cores in a processor package are busy before
> distributing the process load to threads and cores, in other processor
> packages.


I'm currently running Fedora 14 (2.6.35.14-97.fc14.x86_64 kernel) on an 
i5 560M cpu.  It's supposed to have 2 cores, with hyperthreading.

I created a tiny cpu burner program that just busy-loops.  Running two 
instances on my system they were always scheduled on separate physical 
cpus regardless of the values in sched_mc_power_savings or 
sched_smt_power_savings.

Running four instances they were always spread across all four "cpus".

With the newer 8-core chips (plus HT) in multi-socket boards with 
package-level turbo-boost and NUMA memory access this is going to get 
really interesting...

Chris


-- 
Chris Friesen
Software Developer
GENBAND
chris.friesen@genband.com
www.genband.com

^ permalink raw reply

* Re: Flicker-free boot in DRM
From: Adam Jackson @ 2011-10-31 18:59 UTC (permalink / raw)
  To: Keith Packard; +Cc: drivers, Intel
In-Reply-To: <yun1utt2e8z.fsf@aiko.keithp.com>

On 10/31/11 2:43 PM, Keith Packard wrote:
> On Mon, 31 Oct 2011 12:56:58 -0400, Adam Jackson<ajax@redhat.com>  wrote:
>
>> Yeah, it won't be precise.  That's why there's PLL search code at all,
>> and why it has a fuzz factor for finding "good enough".
>
> Right, so we'll need a similar fuzz factor when deciding whether we
> actually need to flip modes or not. Makes me concerned that we'll be
> effectively ignoring minor changes in the mode, which will make tweaking
> dot clocks impossible.

I don't see why we'd need to use the same equality operator everywhere. 
  The case of "is userspace asking for a fine-tune" seems clearly 
distinguishable from "are the current panel timings close enough to what 
EDID asked for".

- ajax

^ permalink raw reply

* Re: [PATCH] m68k/atari: SCC - Move Atari serial driver to staging
From: Geert Uytterhoeven @ 2011-10-31 18:58 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: Linux/m68k
In-Reply-To: <alpine.DEB.2.00.1103201010001.13805@ayla.of.borg>

On Sun, Mar 20, 2011 at 10:11, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> Cfr. commit 4c37705877e74c02c968735c2eee0f84914cf557 ("tty: move obsolete and
> broken generic_serial drivers to drivers/staging/generic_serial/")

As generic serial is gone too, cfr. commit
bb2a97e9ccd525dd9c3326988e8c676d15d3e12a ("Staging: delete generic_serial
drivers"), I'll remove the atari_scc driver. It has to be resurrected as a new
preferred-type-of-serial-driver-of-the-day driver anyway.

You can still get its core logic from the eternal git history, though.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply

* Re: bigalloc and max file size
From: Sunil Mushran @ 2011-10-31 18:53 UTC (permalink / raw)
  To: Tao Ma
  Cc: Theodore Tso, Andreas Dilger, linux-ext4 development,
	Alex Zhuravlev, hao.bigrat@gmail.com
In-Reply-To: <4EAE780D.3090005@tao.ma>

On 10/31/2011 03:27 AM, Tao Ma wrote:
> On 10/31/2011 06:15 PM, Theodore Tso wrote:
>> On Oct 27, 2011, at 11:31 PM, Tao Ma wrote:
>>
>>> Forget to say, if we increase the extent length to be cluster, there are
>>> also a good side effect. ;) Current bigalloc has a severe performance
>>> regression in the following test case:
>>> mount -t ext4 /dev/sdb1 /mnt/ext4
>>> cp linux-3.0.tar.gz /mnt/ext4
>>> cd /mnt/ext4
>>> tar zxvf linux-3.0.tar.gz
>>> umount /mnt/ext4
>> I've been traveling, so I haven't had a chance to test this, but it makes no sense that changing the encoding fro the extent length would change the performance of the forced writeback caused by amount.   There may be a performance bug that we should fix, or may have been fixed by accident with the extent encoding change.
>>
>> Have you investigated why this got better when you changed the meaning of the extent length field?   It makes no sense that such a format change would have such an impact….
> OK, so let me explain why the big cluster length works.
>
> In the new bigalloc case if chunk size=64k, and with the linux-3.0
> source, every file will be allocated a chunk, but they aren't contiguous
> if we only write the 1st 4k bytes. In this case, writeback and the block
> layer below can't merge all the requests sent by ext4. And in our test
> case, the total io will be around 20000. While with the cluster size, we
> have to zero the whole cluster. From the upper point of view. we have to
> write more bytes. But from the block layer, the write is contiguous and
> it can merge them to be a big one. In our test, it will only do around
> 2000 ios. So it helps the test case.

Am I missing something but you cannot zero the entire cluster because
block_write_full_page() drops pages past i_size.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=5693486bad2bc2ac585a2c24f7e2f3964b478df9
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply

* [U-Boot] [PATCH] ARM: define CONFIG_MACH_TYPE for all ronetix boards
From: Asen Chavdarov Dimov @ 2011-10-31 18:54 UTC (permalink / raw)
  To: u-boot


Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
 board/ronetix/pm9261/pm9261.c |    3 ---
 board/ronetix/pm9263/pm9263.c |    3 ---
 board/ronetix/pm9g45/pm9g45.c |    2 --
 include/configs/pm9261.h      |    3 +++
 include/configs/pm9263.h      |    3 +++
 include/configs/pm9g45.h      |    3 +++
 6 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/board/ronetix/pm9261/pm9261.c b/board/ronetix/pm9261/pm9261.c
index 871b94a..b26e33a 100644
--- a/board/ronetix/pm9261/pm9261.c
+++ b/board/ronetix/pm9261/pm9261.c
@@ -248,9 +248,6 @@ int board_init(void)
 		1 << ATMEL_ID_PIOC,
 		&pmc->pcer);
 
-	/* arch number of PM9261-Board */
-	gd->bd->bi_arch_number = MACH_TYPE_PM9261;
-
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c
index cfc9847..b0f7ea6 100644
--- a/board/ronetix/pm9263/pm9263.c
+++ b/board/ronetix/pm9263/pm9263.c
@@ -349,9 +349,6 @@ int board_init(void)
 		(1 << ATMEL_ID_PIOB),
 		&pmc->pcer);
 
-	/* arch number of AT91SAM9263EK-Board */
-	gd->bd->bi_arch_number = MACH_TYPE_PM9263;
-
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
diff --git a/board/ronetix/pm9g45/pm9g45.c b/board/ronetix/pm9g45/pm9g45.c
index f3374a4..961d193 100644
--- a/board/ronetix/pm9g45/pm9g45.c
+++ b/board/ronetix/pm9g45/pm9g45.c
@@ -139,8 +139,6 @@ int board_init(void)
 		(1 << ATMEL_ID_PIOC) |
 		(1 << ATMEL_ID_PIODE), &pmc->pcer);
 
-	/* arch number of AT91SAM9M10G45EK-Board */
-	gd->bd->bi_arch_number = MACH_TYPE_PM9G45;
 	/* adress of boot parameters */
 	gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
diff --git a/include/configs/pm9261.h b/include/configs/pm9261.h
index 89e17b8..55455e7 100644
--- a/include/configs/pm9261.h
+++ b/include/configs/pm9261.h
@@ -52,6 +52,9 @@
 #undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff	*/
 #define CONFIG_SYS_TEXT_BASE	0
 
+#define MACH_TYPE_PM9261	1187
+#define CONFIG_MACH_TYPE	MACH_TYPE_PM9261
+
 /* clocks */
 /* CKGR_MOR - enable main osc. */
 #define CONFIG_SYS_MOR_VAL						\
diff --git a/include/configs/pm9263.h b/include/configs/pm9263.h
index 1f7543c..43104a3 100644
--- a/include/configs/pm9263.h
+++ b/include/configs/pm9263.h
@@ -52,6 +52,9 @@
 #undef CONFIG_USE_IRQ			/* we don't need IRQ/FIQ stuff	*/
 #define CONFIG_SYS_TEXT_BASE	0
 
+#define MACH_TYPE_PM9263	1475
+#define CONFIG_MACH_TYPE	MACH_TYPE_PM9263
+
 /* clocks */
 #define CONFIG_SYS_MOR_VAL						\
 		(AT91_PMC_MOR_MOSCEN |					\
diff --git a/include/configs/pm9g45.h b/include/configs/pm9g45.h
index acc1204..d3beaf3 100644
--- a/include/configs/pm9g45.h
+++ b/include/configs/pm9g45.h
@@ -41,6 +41,9 @@
 #define CONFIG_PM9G45		1	/* It's an Ronetix PM9G45 */
 #define CONFIG_SYS_AT91_CPU_NAME	"AT91SAM9G45"
 
+#define MACH_TYPE_PM9G45	2672
+#define CONFIG_MACH_TYPE	MACH_TYPE_PM9G45
+
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_MAIN_CLOCK	12000000 /* from 12 MHz crystal */
 #define CONFIG_SYS_AT91_SLOW_CLOCK	32768		/* slow clock xtal */
-- 
1.7.4.4

^ permalink raw reply related

* [Qemu-devel] [PATCH v2 3/3] cmd: Fix potential memory leak
From: Pavel Borzenkov @ 2011-10-31 18:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru
In-Reply-To: <1320087218-4230-1-git-send-email-pavel.borzenkov@gmail.com>

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
---
 cmd.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/cmd.c b/cmd.c
index 75415d8..0806e18 100644
--- a/cmd.c
+++ b/cmd.c
@@ -329,16 +329,21 @@ char **breakline(char *input, int *count)
     int c = 0;
     char *p;
     char **rval = calloc(sizeof(char *), 1);
+    char **tmp;
 
     while (rval && (p = qemu_strsep(&input, " ")) != NULL) {
         if (!*p) {
             continue;
         }
         c++;
-        rval = realloc(rval, sizeof(*rval) * (c + 1));
-        if (!rval) {
+        tmp = realloc(rval, sizeof(*rval) * (c + 1));
+        if (!tmp) {
+            free(rval);
+            rval = NULL;
             c = 0;
             break;
+        } else {
+            rval = tmp;
         }
         rval[c - 1] = p;
         rval[c] = NULL;
-- 
1.7.0.4

^ permalink raw reply related

* [Qemu-devel] [PATCH v2 2/3] cmd: Fix potential NULL pointer dereference
From: Pavel Borzenkov @ 2011-10-31 18:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru
In-Reply-To: <1320087218-4230-1-git-send-email-pavel.borzenkov@gmail.com>

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
---
 cmd.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/cmd.c b/cmd.c
index a6e3ef4..75415d8 100644
--- a/cmd.c
+++ b/cmd.c
@@ -47,7 +47,7 @@ compare(const void *a, const void *b)
 
 void add_command(const cmdinfo_t *ci)
 {
-    cmdtab = realloc((void *)cmdtab, ++ncmds * sizeof(*cmdtab));
+    cmdtab = g_realloc((void *)cmdtab, ++ncmds * sizeof(*cmdtab));
     cmdtab[ncmds - 1] = *ci;
     qsort(cmdtab, ncmds, sizeof(*cmdtab), compare);
 }
@@ -122,12 +122,7 @@ find_command(
 
 void add_user_command(char *optarg)
 {
-    ncmdline++;
-    cmdline = realloc(cmdline, ncmdline * sizeof(char *));
-    if (!cmdline) {
-        perror("realloc");
-        exit(1);
-    }
+    cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));
     cmdline[ncmdline-1] = optarg;
 }
 
@@ -190,7 +185,7 @@ void command_loop(void)
         doneline(input, v);
     }
     if (cmdline) {
-        free(cmdline);
+        g_free(cmdline);
         return;
     }
 
-- 
1.7.0.4

^ permalink raw reply related

* [Qemu-devel] [PATCH v2 1/3] cmd: Fix coding style in cmd.c
From: Pavel Borzenkov @ 2011-10-31 18:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru
In-Reply-To: <1320087218-4230-1-git-send-email-pavel.borzenkov@gmail.com>

Before the next patches, fix coding style of the affected functions.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
---
 cmd.c |  168 ++++++++++++++++++++++++++++++++---------------------------------
 1 files changed, 82 insertions(+), 86 deletions(-)

diff --git a/cmd.c b/cmd.c
index f77897e..a6e3ef4 100644
--- a/cmd.c
+++ b/cmd.c
@@ -45,13 +45,11 @@ compare(const void *a, const void *b)
 		      ((const cmdinfo_t *)b)->name);
 }
 
-void
-add_command(
-	const cmdinfo_t	*ci)
+void add_command(const cmdinfo_t *ci)
 {
-	cmdtab = realloc((void *)cmdtab, ++ncmds * sizeof(*cmdtab));
-	cmdtab[ncmds - 1] = *ci;
-	qsort(cmdtab, ncmds, sizeof(*cmdtab), compare);
+    cmdtab = realloc((void *)cmdtab, ++ncmds * sizeof(*cmdtab));
+    cmdtab[ncmds - 1] = *ci;
+    qsort(cmdtab, ncmds, sizeof(*cmdtab), compare);
 }
 
 static int
@@ -122,16 +120,15 @@ find_command(
 	return NULL;
 }
 
-void
-add_user_command(char *optarg)
+void add_user_command(char *optarg)
 {
-	ncmdline++;
-	cmdline = realloc(cmdline, sizeof(char*) * (ncmdline));
-	if (!cmdline) {
-		perror("realloc");
-		exit(1);
-	}
-	cmdline[ncmdline-1] = optarg;
+    ncmdline++;
+    cmdline = realloc(cmdline, ncmdline * sizeof(char *));
+    if (!cmdline) {
+        perror("realloc");
+        exit(1);
+    }
+    cmdline[ncmdline-1] = optarg;
 }
 
 static int
@@ -160,45 +157,44 @@ static void prep_fetchline(void *opaque)
 
 static char *get_prompt(void);
 
-void
-command_loop(void)
+void command_loop(void)
 {
-	int		c, i, j = 0, done = 0, fetchable = 0, prompted = 0;
-	char		*input;
-	char		**v;
-	const cmdinfo_t	*ct;
-
-	for (i = 0; !done && i < ncmdline; i++) {
-		input = strdup(cmdline[i]);
-		if (!input) {
-			fprintf(stderr,
-				_("cannot strdup command '%s': %s\n"),
-				cmdline[i], strerror(errno));
-			exit(1);
-		}
-		v = breakline(input, &c);
-		if (c) {
-			ct = find_command(v[0]);
-			if (ct) {
-				if (ct->flags & CMD_FLAG_GLOBAL)
-					done = command(ct, c, v);
-				else {
-					j = 0;
-					while (!done && (j = args_command(j)))
-						done = command(ct, c, v);
-				}
-			} else
-				fprintf(stderr, _("command \"%s\" not found\n"),
-					v[0]);
-		}
-		doneline(input, v);
-	}
-	if (cmdline) {
-		free(cmdline);
-		return;
+    int c, i, j = 0, done = 0, fetchable = 0, prompted = 0;
+    char *input;
+    char **v;
+    const cmdinfo_t *ct;
+
+    for (i = 0; !done && i < ncmdline; i++) {
+        input = strdup(cmdline[i]);
+        if (!input) {
+            fprintf(stderr, _("cannot strdup command '%s': %s\n"),
+                    cmdline[i], strerror(errno));
+            exit(1);
+        }
+        v = breakline(input, &c);
+        if (c) {
+            ct = find_command(v[0]);
+            if (ct) {
+                if (ct->flags & CMD_FLAG_GLOBAL) {
+                    done = command(ct, c, v);
+                } else {
+                    j = 0;
+                    while (!done && (j = args_command(j))) {
+                        done = command(ct, c, v);
+                    }
+                }
+            } else {
+                fprintf(stderr, _("command \"%s\" not found\n"), v[0]);
+            }
 	}
+        doneline(input, v);
+    }
+    if (cmdline) {
+        free(cmdline);
+        return;
+    }
 
-	while (!done) {
+    while (!done) {
         if (!prompted) {
             printf("%s", get_prompt());
             fflush(stdout);
@@ -212,22 +208,24 @@ command_loop(void)
         if (!fetchable) {
             continue;
         }
-		if ((input = fetchline()) == NULL)
-			break;
-		v = breakline(input, &c);
-		if (c) {
-			ct = find_command(v[0]);
-			if (ct)
-				done = command(ct, c, v);
-			else
-				fprintf(stderr, _("command \"%s\" not found\n"),
-					v[0]);
-		}
-		doneline(input, v);
+        input = fetchline();
+        if (input == NULL) {
+            break;
+        }
+        v = breakline(input, &c);
+        if (c) {
+            ct = find_command(v[0]);
+            if (ct) {
+                done = command(ct, c, v);
+            } else {
+                fprintf(stderr, _("command \"%s\" not found\n"), v[0]);
+            }
+        }
+        doneline(input, v);
 
         prompted = 0;
         fetchable = 0;
-	}
+    }
     qemu_aio_set_fd_handler(STDIN_FILENO, NULL, NULL, NULL, NULL, NULL);
 }
 
@@ -331,29 +329,27 @@ static char *qemu_strsep(char **input, const char *delim)
     return result;
 }
 
-char **
-breakline(
-	char	*input,
-	int	*count)
+char **breakline(char *input, int *count)
 {
-	int	c = 0;
-	char	*p;
-	char	**rval = calloc(sizeof(char *), 1);
-
-	while (rval && (p = qemu_strsep(&input, " ")) != NULL) {
-		if (!*p)
-			continue;
-		c++;
-		rval = realloc(rval, sizeof(*rval) * (c + 1));
-		if (!rval) {
-			c = 0;
-			break;
-		}
-		rval[c - 1] = p;
-		rval[c] = NULL;
-	}
-	*count = c;
-	return rval;
+    int c = 0;
+    char *p;
+    char **rval = calloc(sizeof(char *), 1);
+
+    while (rval && (p = qemu_strsep(&input, " ")) != NULL) {
+        if (!*p) {
+            continue;
+        }
+        c++;
+        rval = realloc(rval, sizeof(*rval) * (c + 1));
+        if (!rval) {
+            c = 0;
+            break;
+        }
+        rval[c - 1] = p;
+        rval[c] = NULL;
+    }
+    *count = c;
+    return rval;
 }
 
 void
-- 
1.7.0.4

^ permalink raw reply related

* [Qemu-devel] [PATCH v2 0/3] Misc small fixes in cmd.c
From: Pavel Borzenkov @ 2011-10-31 18:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru

The first patch fixes coding style of the functions affected by next two
patches.
Second patch fixes potential NULL pointer dereference (return value of realloc
is not checked).
Third patch fixes potential memory leak (for the case when realloc returns
NULL).

Pavel Borzenkov (3):
  cmd: Fix coding style in cmd.c
  cmd: Fix potential NULL pointer dereference
  cmd: Fix potential memory leak

 cmd.c |  168 ++++++++++++++++++++++++++++++++---------------------------------
 1 files changed, 82 insertions(+), 86 deletions(-)

^ permalink raw reply

* Re: [B.A.T.M.A.N.] [PATCH 0/6] DAT: Distributed ARP Table
From: Gus Wirth @ 2011-10-31 18:53 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking
In-Reply-To: <1319964962-5092-1-git-send-email-ordex@autistici.org>

On 10/30/2011 01:55 AM, Antonio Quartulli wrote:
> Hello people,
> as most of you may already know, last summer I've been working on the
> B.A.T.M.A.N.-Adv GSoC project named "DAT: Distributed ARP Table". For who wants
> to get deeper into the details of the project there are two links:
> - The GSoC proposal [1]
> - The DAT wikipage on open-mesh.org [2], with status and ideas description
> 
> Just to recap: DAT is a distributes hash table meant to store ARP entries for
> fast lookup. In a normal scenario, whenever a node wants to communicate with
> another one, it first needs to issue a broadcast ARP request in order to
> retrieve its PHY/MAC address. In a sparse network a broadcast message could be
> lost several times before reaching the real destination so creating high
> latencies. With DAT, every ARP entries (a pair [IP addr, MAC addr]) is stored on
> a "computed" set of nodes, therefore in case of ARP request theses nodes can
> directly be contacted (in unicast) and the needed information can be quickly
> fetched.
> 
> Cheers,
> Antonio
> 
> [1] http://www.google-melange.com/gsoc/project/google/gsoc2011/ordex/4001
> [2] http://www.open-mesh.org/wiki/batman-adv/DAT

The link to the Wiki page doesn't work.

The actual link:

http://www.open-mesh.org/wiki/batman-adv/DistributedArpTable

Except there is no information there :(

Gus

^ permalink raw reply

* Re: raid(1) and block caching
From: CoolCold @ 2011-10-31 18:53 UTC (permalink / raw)
  To: John Robinson; +Cc: Linux RAID
In-Reply-To: <4EAD44DF.6050000@anonymous.org.uk>

On Sun, Oct 30, 2011 at 4:36 PM, John Robinson
<john.robinson@anonymous.org.uk> wrote:
> On 29/10/2011 07:26, NeilBrown wrote:
>>
>> On Sat, 29 Oct 2011 08:49:09 +0400 CoolCold<coolthecold@gmail.com>  wrote:
>
> [...]
>>>
>>> As there are some pros and cons on both sides (at least theoretically)
>>>  I have dumb question - let's say our array md1 consists on 3 drives -
>>> /dev/sd{a,b,c} - and when data read from md1 occurs, which block is
>>> cached in VFS (or may be other cache in system, it would be nice to
>>> know which part of system is doing caching)  - the block from md1
>>> itself or from certain drive? If it is drive-based block cache, it's
>>> gonna be potentially memory wasting to keep 3 similar data copies, so
>>> I assume md does data reads with something like O_DIRECT flag, but as
>>> I 1) don't know C 2) don't know kernel, I'm asking this on the list to
>>> make this clean for myself.
>>
>> The kernel caches pages of files, not pages of devices.
>> It doesn't matter where the page of data came from - it is the page of a
>> file
>> that is cached.
>
> I suppose if the user was silly enough to mount the same filesystem from
> both md1 and sd{a,b,c} simultaneously then there could be duplication of
> caching, but as I say I think that'd be a silly configuration :-)
Hehe, this is not the situation I'm looking through, there is no
vaccine against shooting in own leg ;)

>
> Cheers,
>
> John.
>
>



-- 
Best regards,
[COOLCOLD-RIPN]
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply

* Re: Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp transmit queue timed out)
From: Pasi Kärkkäinen @ 2011-10-31 18:52 UTC (permalink / raw)
  To: xen-devel; +Cc: xen
In-Reply-To: <20111031184907.GA12984@reaktio.net>


And added fedora xen mailinglist to CC aswell..

On Mon, Oct 31, 2011 at 08:49:07PM +0200, Pasi Kärkkäinen wrote:
> Hello,
> 
> While testing Xen 4.1.2 and HVM guests I noticed the following problem
> with Fedora 16 HVM guests (using Linux 3.1.0 kernel in the VM):
> 
> The errors (call trace) happens pretty much immediately when there's some network traffic going on..
> 
> Simple "yum update" in the VM triggers the problem..
> 
> 
> [    0.000000] Linux version 3.1.0-5.fc16.x86_64 (mockbuild@x86-10.phx2.fedoraproject.org) (gcc version 4.6.1 20111003 (Red Hat 4.6.1-10) (GCC) ) #1 SMP Thu Oct 27 03:46:50 UTC 2011
> [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.1.0-5.fc16.x86_64 root=/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=vg_f16test64hvm/lv_root rd.dm=0 SYSFONT=latarcyrheb-sun16 rhgb KEYTABLE=fi rd.md=0 rd.luks=0 rd.lvm.lv=vg_f16test64hvm/lv_swap LANG=en_US.UTF-8 console=ttyS0,38400 console=tty0
> <snip>
> 
> [   28.998481] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
> [  149.712071] ------------[ cut here ]------------
> [  149.717216] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xf0/0x150()
> [  149.724709] Hardware name: HVM domU
> [  149.728738] NETDEV WATCHDOG: eth0 (8139cp): transmit queue 0 timed out
> [  149.735537] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 81
> 39too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
> [  149.768028] Pid: 0, comm: swapper Not tainted 3.1.0-5.fc16.x86_64 #1
> [  149.774639] Call Trace:
> [  149.777765]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
> [  149.784024]  [<ffffffff81057b11>] warn_slowpath_fmt+0x46/0x48
> [  149.790141]  [<ffffffff813ef49d>] ? netif_tx_lock+0x4a/0x7c
> [  149.799007]  [<ffffffff813ef613>] dev_watchdog+0xf0/0x150
> [  149.806361]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
> [  149.814392]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.821650]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
> [  149.828926]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
> [  149.836803]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.843422]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
> [  149.850067]  [<ffffffff81010b45>] do_softirq+0x46/0x81
> [  149.856760]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
> [  149.863035]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
> [  149.871144]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
> [  149.879494]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
> [  149.888220]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
> [  149.894962]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
> [  149.901461]  [<ffffffff814934ee>] rest_init+0x72/0x74
> [  149.908949]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
> [  149.916617]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
> [  149.929148]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
> [  149.936797]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
> [  149.944336] ---[ end trace d8786cb7d6a57f8a ]---
> [  149.950406] 8139cp 0000:00:03.0: eth0: Transmit timeout, status  d   3b   15 80ff
> [  149.961879] ------------[ cut here ]------------
> [  149.962245] WARNING: at kernel/softirq.c:159 _local_bh_enable_ip+0x44/0x8e()
> [  149.962245] Hardware name: HVM domU
> [  149.962245] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
> [  149.962245] Pid: 0, comm: swapper Tainted: G        W   3.1.0-5.fc16.x86_64 #1
> [  149.962245] Call Trace:
> [  149.962245]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
> [  149.962245]  [<ffffffff813ce599>] ? skb_release_data+0xca/0xcf
> [  149.962245]  [<ffffffff81057a88>] warn_slowpath_null+0x1a/0x1c
> [  149.962245]  [<ffffffff8105d462>] _local_bh_enable_ip+0x44/0x8e
> [  149.962245]  [<ffffffff8105d4ba>] local_bh_enable_ip+0xe/0x10
> [  149.962245]  [<ffffffff814b5db4>] _raw_spin_unlock_bh+0x15/0x17
> [  149.962245]  [<ffffffffa0053969>] destroy_conntrack+0x9d/0xdc [nf_conntrack]
> [  149.962245]  [<ffffffff813fa343>] nf_conntrack_destroy+0x19/0x1b
> [  149.962245]  [<ffffffff813ce7ad>] skb_release_head_state+0xa7/0xef
> [  149.962245]  [<ffffffff813ce5b1>] __kfree_skb+0x13/0x83
> [  149.962245]  [<ffffffff813ce677>] consume_skb+0x56/0x6b
> [  149.962245]  [<ffffffffa003c1b9>] cp_clean_rings+0xb4/0x114 [8139cp]
> [  149.962245]  [<ffffffffa003c371>] cp_tx_timeout+0x88/0x10e [8139cp]
> [  149.962245]  [<ffffffff813ef627>] dev_watchdog+0x104/0x150
> [  149.962245]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
> [  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.962245]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
> [  149.962245]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
> [  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.962245]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
> [  149.962245]  [<ffffffff81010b45>] do_softirq+0x46/0x81
> [  149.962245]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
> [  149.962245]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
> [  149.962245]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
> [  149.962245]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
> [  149.962245]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
> [  149.962245]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
> [  149.962245]  [<ffffffff814934ee>] rest_init+0x72/0x74
> [  149.962245]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
> [  149.962245]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
> [  149.962245]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
> [  149.962245]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
> [  149.962245] ---[ end trace d8786cb7d6a57f8b ]---
> 
> Full guest kernel dmesg attached to this email.
> The host is running F16 with Xen 4.1.2 and Linux 3.1.0 dom0 kernel.
> 
> Xen cfgfile for the HVM domain:
> 
> kernel = "hvmloader"
> builder='hvm'
> device_model = 'qemu-dm'
> name = "f16test64hvm"
> memory = 1024
> vcpus=1
> pae=1
> acpi=1
> apic=1
> vif = [ 'type=ioemu, mac=00:16:3f:03:01:14, bridge=virbr0' ]
> disk = [ 'phy:/dev/vg_f16/f16test64hvm,hda,w', 'file:/root/iso/Fedora-16-Final-RC2-x86_64-DVD.iso,hdc:cdrom,r' ]
> boot='cd'
> xen_platform_pci=0
> on_poweroff = 'destroy'
> on_reboot   = 'restart'
> on_crash    = 'restart'
> sdl=0
> vnc=1
> vncpasswd=''
> stdvga=0
> serial='pty'
> tsc_mode=0
> usb=1
> usbdevice='tablet'
> keymap='fi'
> 
> 
> Using "model=e1000" instead for the vif works OK.. no problems with the emulated intel nic.
> 
> Any ideas what the problem with the emulated realtek nic? 
> 
> Thanks,
> 
> 
> -- Pasi
> 

> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Linux version 3.1.0-5.fc16.x86_64 (mockbuild@x86-10.phx2.fedoraproject.org) (gcc version 4.6.1 20111003 (Red Hat 4.6.1-10) (GCC) ) #1 SMP Thu Oct 27 03:46:50 UTC 2011
> [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.1.0-5.fc16.x86_64 root=/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=vg_f16test64hvm/lv_root rd.dm=0 SYSFONT=latarcyrheb-sun16 rhgb KEYTABLE=fi rd.md=0 rd.luks=0 rd.lvm.lv=vg_f16test64hvm/lv_swap LANG=en_US.UTF-8 console=ttyS0,38400 console=tty0
> [    0.000000] BIOS-provided physical RAM map:
> [    0.000000]  BIOS-e820: 0000000000000000 - 000000000009e000 (usable)
> [    0.000000]  BIOS-e820: 000000000009e000 - 00000000000a0000 (reserved)
> [    0.000000]  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
> [    0.000000]  BIOS-e820: 0000000000100000 - 0000000040000000 (usable)
> [    0.000000]  BIOS-e820: 00000000fc000000 - 0000000100000000 (reserved)
> [    0.000000] Using x86 segment limits to approximate NX protection
> [    0.000000] DMI 2.4 present.
> [    0.000000] Hypervisor detected: Xen HVM
> [    0.000000] Xen version 4.1.
> [    0.000000] Xen Platform PCI: unrecognised magic value
> [    0.000000] No AGP bridge found
> [    0.000000] last_pfn = 0x40000 max_arch_pfn = 0x400000000
> [    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
> [    0.000000] found SMP MP-table at [ffff8800000fbc70] fbc70
> [    0.000000] init_memory_mapping: 0000000000000000-0000000040000000
> [    0.000000] RAMDISK: 36608000 - 372fc000
> [    0.000000] ACPI: RSDP 00000000000ea020 00024 (v02    Xen)
> [    0.000000] ACPI: XSDT 00000000fc0134b0 00034 (v01    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: FACP 00000000fc0132d0 000F4 (v04    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: DSDT 00000000fc003440 0FE05 (v02    Xen      HVM 00000000 INTL 20100528)
> [    0.000000] ACPI: FACS 00000000fc003400 00040
> [    0.000000] ACPI: APIC 00000000fc0133d0 000D8 (v02    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] No NUMA configuration found
> [    0.000000] Faking a node at 0000000000000000-0000000040000000
> [    0.000000] Initmem setup node 0 0000000000000000-0000000040000000
> [    0.000000]   NODE_DATA [000000003ffec000 - 000000003fffffff]
> [    0.000000] Zone PFN ranges:
> [    0.000000]   DMA      0x00000010 -> 0x00001000
> [    0.000000]   DMA32    0x00001000 -> 0x00100000
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start PFN for each node
> [    0.000000] early_node_map[2] active PFN ranges
> [    0.000000]     0: 0x00000010 -> 0x0000009e
> [    0.000000]     0: 0x00000100 -> 0x00040000
> [    0.000000] ACPI: PM-Timer IO Port: 0xb008
> [    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x08] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x0a] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x0c] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x0e] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x10] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x12] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x14] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x16] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x18] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x1a] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x1c] disabled)
> [    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
> [    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
> [    0.000000] Using ACPI (MADT) for SMP configuration information
> [    0.000000] SMP: Allowing 15 CPUs, 14 hotplug CPUs
> [    0.000000] PM: Registered nosave memory: 000000000009e000 - 00000000000a0000
> [    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e0000
> [    0.000000] PM: Registered nosave memory: 00000000000e0000 - 0000000000100000
> [    0.000000] Allocating PCI resources starting at 40000000 (gap: 40000000:bc000000)
> [    0.000000] Booting paravirtualized kernel on Xen HVM
> [    0.000000] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:15 nr_node_ids:1
> [    0.000000] PERCPU: Embedded 27 pages/cpu @ffff88003fc00000 s81024 r8192 d21376 u131072
> [    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 257929
> [    0.000000] Policy zone: DMA32
> [    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.1.0-5.fc16.x86_64 root=/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=vg_f16test64hvm/lv_root rd.dm=0 SYSFONT=latarcyrheb-sun16 rhgb KEYTABLE=fi rd.md=0 rd.luks=0 rd.lvm.lv=vg_f16test64hvm/lv_swap LANG=en_US.UTF-8 console=ttyS0,38400 console=tty0
> [    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> [    0.000000] Checking aperture...
> [    0.000000] No AGP bridge found
> [    0.000000] Memory: 1002468k/1048576k available (4867k kernel code, 456k absent, 45652k reserved, 6782k data, 940k init)
> [    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000] 	RCU dyntick-idle grace-period acceleration is enabled.
> [    0.000000] NR_IRQS:16640 nr_irqs:1208 16
> [    0.000000] Xen HVM callback vector for event delivery is enabled
> [    0.000000] Console: colour VGA+ 80x25
> [    0.000000] console [tty0] enabled
> [    0.000000] console [ttyS0] enabled
> [    0.000000] allocated 8388608 bytes of page_cgroup
> [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
> [    0.000000] Detected 2677.244 MHz processor.
> [    0.005999] Calibrating delay loop (skipped), value calculated using timer frequency.. 5354.48 BogoMIPS (lpj=2677244)
> [    0.015004] pid_max: default: 32768 minimum: 301
> [    0.021037] Security Framework initialized
> [    0.025012] SELinux:  Initializing.
> [    0.030209] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
> [    0.039268] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
> [    0.047115] Mount-cache hash table entries: 256
> [    0.051161] Initializing cgroup subsys cpuacct
> [    0.056007] Initializing cgroup subsys memory
> [    0.060013] Initializing cgroup subsys devices
> [    0.063998] Initializing cgroup subsys freezer
> [    0.071007] Initializing cgroup subsys net_cls
> [    0.077002] Initializing cgroup subsys blkio
> [    0.092016] Initializing cgroup subsys perf_event
> [    0.097110] CPU: Physical Processor ID: 0
> [    0.105998] CPU: Processor Core ID: 0
> [    0.114998] mce: CPU supports 9 MCE banks
> [    0.120027] SMP alternatives: switching to UP code
> [    0.137406] ACPI: Core revision 20110623
> [    0.154723] ftrace: allocating 25204 entries in 99 pages
> [    0.203985] Not enabling x2apic, Intr-remapping init failed.
> [    0.212983] Switched APIC routing to physical flat.
> [    0.227511] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
> [    0.247910] CPU0: Intel(R) Core(TM) i5 CPU       M 560  @ 2.67GHz stepping 05
> [    0.266997] installing Xen timer for CPU 0
> [    0.279095] Performance Events: unsupported p6 CPU model 37 no PMU driver, software events only.
> [    0.288052] NMI watchdog disabled (cpu0): hardware events not enabled
> [    0.289014] Brought up 1 CPUs
> [    0.289980] Total of 1 processors activated (5354.48 BogoMIPS).
> [    0.295080] devtmpfs: initialized
> [    0.334074] atomic64 test passed for x86-64 platform with CX8 and with SSE
> [    0.335009] RTC time: 18:48:31, date: 10/31/11
> [    0.336031] NET: Registered protocol family 16
> [    0.340028] ACPI: bus type pci registered
> [    0.343066] PCI: Using configuration type 1 for base access
> [    0.352055] bio: create slab <bio-0> at 0
> [    0.354016] ACPI: Added _OSI(Module Device)
> [    0.354986] ACPI: Added _OSI(Processor Device)
> [    0.355988] ACPI: Added _OSI(3.0 _SCP Extensions)
> [    0.356976] ACPI: Added _OSI(Processor Aggregator Device)
> [    0.461035] ACPI: Interpreter enabled
> [    0.461960] ACPI: (supports S0 S3 S4 S5)
> [    0.466962] ACPI: Using IOAPIC for interrupt routing
> [    1.042887] ACPI: No dock devices found.
> [    1.043879] HEST: Table not found.
> [    1.044874] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
> [    1.045996] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
> [    1.047922] pci_root PNP0A03:00: host bridge window [io  0x0000-0x0cf7]
> [    1.048872] pci_root PNP0A03:00: host bridge window [io  0x0d00-0xffff]
> [    1.049876] pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff]
> [    1.050885] pci_root PNP0A03:00: host bridge window [mem 0xf0000000-0xfbffffff]
> [    1.148854] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
> [    1.148856] * this clock source is slow. Consider trying other clock sources
> [    1.174862] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
> [    1.249999]  pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e)
> [    1.988937] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
> [    1.995734] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
> [    2.002022] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
> [    2.007986] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11)
> [    2.013926] xen/balloon: Initialising balloon driver.
> [    2.014721] last_pfn = 0x40000 max_arch_pfn = 0x400000000
> [    2.015744] xen-balloon: Initialising balloon driver.
> [    2.016893] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
> [    2.017723] vgaarb: loaded
> [    2.018717] vgaarb: bridge control possible 0000:00:02.0
> [    2.019908] SCSI subsystem initialized
> [    2.020926] usbcore: registered new interface driver usbfs
> [    2.021751] usbcore: registered new interface driver hub
> [    2.022778] usbcore: registered new device driver usb
> [    2.023833] PCI: Using ACPI for IRQ routing
> [    2.027000] NetLabel: Initializing
> [    2.027726] NetLabel:  domain hash size = 128
> [    2.028719] NetLabel:  protocols = UNLABELED CIPSOv4
> [    2.029771] NetLabel:  unlabeled traffic allowed by default
> [    2.030738] Switching to clocksource xen
> [    2.032064] Switched to NOHz mode on CPU #0
> [    2.058600] pnp: PnP ACPI init
> [    2.070312] ACPI: bus type pnp registered
> [    2.081358] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
> [    2.105526] system 00:02: [io  0x10c0-0x1141] has been reserved
> [    2.123586] system 00:02: [io  0xb044-0xb047] has been reserved
> [    2.140716] system 00:03: [io  0x08a0-0x08a3] has been reserved
> [    2.155376] system 00:03: [io  0x0cc0-0x0ccf] has been reserved
> [    2.171720] system 00:03: [io  0x04d0-0x04d1] has been reserved
> [    2.235079] pnp: PnP ACPI: found 12 devices
> [    2.239980] ACPI: ACPI bus type pnp unregistered
> [    2.252651] NET: Registered protocol family 2
> [    2.262951] IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
> [    2.271095] TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
> [    2.282685] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
> [    2.293164] TCP: Hash tables configured (established 131072 bind 65536)
> [    2.302409] TCP reno registered
> [    2.307217] UDP hash table entries: 512 (order: 2, 16384 bytes)
> [    2.317125] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
> [    2.326389] NET: Registered protocol family 1
> [    2.331960] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
> [    2.341391] pci 0000:00:01.0: PIIX3: Enabling Passive Release
> [    2.353138] pci 0000:00:01.0: Activating ISA DMA hang workarounds
> [    2.361559] Unpacking initramfs...
> [    2.699968] Freeing initrd memory: 13264k freed
> [    2.710147] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
> [    2.717216] audit: initializing netlink socket (disabled)
> [    2.722974] type=2000 audit(1320086915.409:1): initialized
> [    2.752235] HugeTLB registered 2 MB page size, pre-allocated 0 pages
> [    2.764915] VFS: Disk quotas dquot_6.5.2
> [    2.769491] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    2.776668] msgmni has been set to 1983
> [    2.781504] alg: No test for stdrng (krng)
> [    2.787102] NET: Registered protocol family 38
> [    2.792422] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
> [    2.801199] io scheduler noop registered
> [    2.806077] io scheduler deadline registered
> [    2.811278] io scheduler cfq registered (default)
> [    2.818821] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [    2.825681] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> [    2.831486] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> [    2.838723] acpiphp: Slot [0] registered
> [    2.842985] acpiphp: Slot [1] registered
> [    2.847352] acpiphp: Slot [2] registered
> [    2.851192] acpiphp: Slot [3] registered
> [    2.855526] acpiphp: Slot [4] registered
> [    2.859987] acpiphp: Slot [5] registered
> [    2.865216] acpiphp: Slot [6] registered
> [    2.870721] acpiphp: Slot [7] registered
> [    2.875193] acpiphp: Slot [8] registered
> [    2.882170] acpiphp: Slot [9] registered
> [    2.887602] acpiphp: Slot [10] registered
> [    2.893553] acpiphp: Slot [11] registered
> [    2.901005] acpiphp: Slot [12] registered
> [    2.909484] acpiphp: Slot [13] registered
> [    2.927108] acpiphp: Slot [14] registered
> [    2.936646] acpiphp: Slot [15] registered
> [    2.947352] acpiphp: Slot [16] registered
> [    2.959370] acpiphp: Slot [17] registered
> [    2.975306] acpiphp: Slot [18] registered
> [    2.986962] acpiphp: Slot [19] registered
> [    2.998507] acpiphp: Slot [20] registered
> [    3.008809] acpiphp: Slot [21] registered
> [    3.019088] acpiphp: Slot [22] registered
> [    3.028701] acpiphp: Slot [23] registered
> [    3.041087] acpiphp: Slot [24] registered
> [    3.054701] acpiphp: Slot [25] registered
> [    3.088485] acpiphp: Slot [26] registered
> [    3.096559] acpiphp: Slot [27] registered
> [    3.104123] acpiphp: Slot [28] registered
> [    3.112335] acpiphp: Slot [29] registered
> [    3.120729] acpiphp: Slot [30] registered
> [    3.128063] acpiphp: Slot [31] registered
> [    3.140336] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
> [    3.152824] ACPI: Power Button [PWRF]
> [    3.159164] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
> [    3.170535] ACPI: Sleep Button [SLPF]
> [    3.240741] ERST: Table is not found!
> [    3.247178] GHES: HEST is not enabled!
> [    3.255081] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [    3.299342] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> [    3.339144] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> [    3.348389] Non-volatile memory driver v1.3
> [    3.359031] Linux agpgart interface v0.103
> [    3.373452] loop: module loaded
> [    3.380620] scsi0 : ata_piix
> [    3.385158] scsi1 : ata_piix
> [    3.392804] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc120 irq 14
> [    3.406093] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc128 irq 15
> [    3.424665] Fixed MDIO Bus: probed
> [    3.432049] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    3.452302] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    3.465814] uhci_hcd: USB Universal Host Controller Interface driver
> [    3.480645] uhci_hcd 0000:00:01.2: PCI INT D -> GSI 23 (level, low) -> IRQ 23
> [    3.495010] uhci_hcd 0000:00:01.2: UHCI Host Controller
> [    3.509922] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
> [    3.532921] uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c100
> [    3.556237] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
> [    3.577164] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [    3.597277] usb usb1: Product: UHCI Host Controller
> [    3.609990] usb usb1: Manufacturer: Linux 3.1.0-5.fc16.x86_64 uhci_hcd
> [    3.623617] usb usb1: SerialNumber: 0000:00:01.2
> [    3.633485] hub 1-0:1.0: USB hub found
> [    3.641829] hub 1-0:1.0: 2 ports detected
> [    3.654394] usbcore: registered new interface driver usbserial
> [    3.834631] Refined TSC clocksource calibration: 2677.188 MHz.
> [    3.849203] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
> [    3.860117] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
> [    3.867830] ata1.00: 62914560 sectors, multi 16: LBA48 
> [    3.880575] ata2.00: configured for MWDMA2
> [    3.888438] ata1.00: configured for MWDMA2
> [    3.897324] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
> [    3.909309] sd 0:0:0:0: Attached scsi generic sg0 type 0
> [    3.921146] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.10 PQ: 0 ANSI: 5
> [    3.940204] sd 0:0:0:0: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
> [    3.953575] sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
> [    3.972245] cdrom: Uniform CD-ROM driver Revision: 3.20
> [    3.985565] sd 0:0:0:0: [sda] Write Protect is off
> [    3.995242] sr 1:0:0:0: Attached scsi generic sg1 type 5
> [    4.003515] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
> [    4.030638] USB Serial support registered for generic
> [    4.071098] usb 1-2: new full speed USB device number 2 using uhci_hcd
> [    4.116603]  sda: sda1 sda2 sda3
> [    4.122784] sd 0:0:0:0: [sda] Attached SCSI disk
> [    4.279332] usb 1-2: New USB device found, idVendor=0627, idProduct=0001
> [    4.285003] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [    4.291626] usb 1-2: Product: QEMU USB Tablet
> [    4.296035] usb 1-2: Manufacturer: QEMU 0.10.2
> [    4.301072] usb 1-2: SerialNumber: 1
> [    4.327941] usbcore: registered new interface driver usbserial_generic
> [    4.334045] usbserial: USB Serial Driver core
> [    4.338689] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
> [    4.356131] serio: i8042 KBD port at 0x60,0x64 irq 1
> [    4.365819] serio: i8042 AUX port at 0x60,0x64 irq 12
> [    4.377814] mousedev: PS/2 mouse device common for all mice
> [    4.391350] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
> [    4.409931] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
> [    4.423898] rtc0: alarms up to one day, 114 bytes nvram
> [    4.435841] device-mapper: uevent: version 1.0.3
> [    4.449590] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
> [    4.495727] cpuidle: using governor ladder
> [    4.504718] cpuidle: using governor menu
> [    4.513536] EFI Variables Facility v0.08 2004-May-17
> [    4.552133] input: QEMU 0.10.2 QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-2/1-2:1.0/input/input3
> [    4.574945] generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU 0.10.2 QEMU USB Tablet] on usb-0000:00:01.2-2/input0
> [    4.604382] usbcore: registered new interface driver usbhid
> [    4.615480] usbhid: USB HID core driver
> [    4.632689] ip_tables: (C) 2000-2006 Netfilter Core Team
> [    4.642932] TCP cubic registered
> [    4.650070] Initializing XFRM netlink socket
> [    4.659989] NET: Registered protocol family 10
> [    4.670710] Mobile IPv6
> [    4.676439] NET: Registered protocol family 17
> [    4.686698] Registering the dns_resolver key type
> [    4.698703] registered taskstats version 1
> [    4.710470] IMA: No TPM chip found, activating TPM-bypass!
> [    4.727752]   Magic number: 15:53:849
> [    4.737301] graphics fbcon: hash matches
> [    4.747845] rtc_cmos 00:05: setting system clock to 2011-10-31 18:48:35 UTC (1320086915)
> [    4.766933] Initializing network drop monitor service
> [    4.778567] Freeing unused kernel memory: 940k freed
> [    4.790390] Write protecting the kernel read-only data: 10240k
> [    4.816829] Freeing unused kernel memory: 1260k freed
> [    4.847132] Freeing unused kernel memory: 1584k freed
> [    4.946739] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
> [    5.069194] dracut: dracut-013-16.fc16
> [    5.086672] udevd[115]: starting version 173
> [    5.237375] dracut: Starting plymouth daemon
> ^[%G[    5.437681] dracut: rd.dm=0: removing DM RAID activation
> [    5.456883] dracut: rd.md.imsm=0: no MD RAID for imsm/isw raids
> [    5.471879] dracut: rd.md.ddf=0: no MD RAID for SNIA ddf raids
> ^[%G[    6.056855] dracut: Scanning devices sda3  for LVM logical volumes vg_f16test64hvm/lv_root vg_f16test64hvm/lv_swap
> [    6.099044] dracut: inactive '/dev/vg_f16test64hvm/lv_swap' [1.97 GiB] inherit
> [    6.107308] dracut: inactive '/dev/vg_f16test64hvm/lv_root' [27.53 GiB] inherit
> [    6.615218] EXT4-fs (dm-1): INFO: recovery required on readonly filesystem
> [    6.623572] EXT4-fs (dm-1): write access will be enabled during recovery
> [    7.513709] EXT4-fs (dm-1): recovery complete
> [    7.539777] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
> [    7.596678] dracut: Checking ext4: /dev/mapper/vg_f16test64hvm-lv_root
> [    7.603638] dracut: issuing e2fsck -a  /dev/mapper/vg_f16test64hvm-lv_root
> [    7.657115] dracut: /dev/mapper/vg_f16test64hvm-lv_root: clean, 18709/1806896 files, 289903/7217152 blocks
> [    7.666279] dracut: Remounting /dev/mapper/vg_f16test64hvm-lv_root with -o ro
> [    7.680814] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
> [    7.717573] dracut: Mounted root filesystem /dev/mapper/vg_f16test64hvm-lv_root
> [    7.854983] dracut: Switching root
> [    8.204987] type=1404 audit(1320086918.956:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
> [    8.329675] type=1403 audit(1320086919.081:3): policy loaded auid=4294967295 ses=4294967295
> [    8.353773] systemd[1]: Successfully loaded SELinux policy in 165ms 166us.
> [    8.451859] systemd[1]: Successfully loaded SELinux database in 77ms 139us, size on heap is 475K.
> [    8.509781] systemd[1]: RTC configured in localtime, applying delta of 120 minutes to system time.
> [    8.660676] systemd[1]: Relabelled /dev and /run in 87ms 636us.
> [    8.689704] systemd[1]: systemd 36 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +SYSVINIT +LIBCRYPTSETUP; fedora)
> 
> Welcome to ^[[0;34mFedora release 16 (Verne)^[[0m!
> 
> [    8.755902] systemd[1]: Set hostname to <f16test64hvm.localdomain>.
> Starting Collect Read-Ahead Data...
> Started Replay Read-Ahead Data.
> Starting Media Directory...
> [    9.215716] systemd-readahead-collect[402]: Disabling readahead collector due to execution in virtualized environment.
> Started Lock Directory.
> Started Runtime Directory.
> Starting Debug File System...
> Starting POSIX Message Queue File System...
> Starting Security File System...
> Starting Huge Pages File System...
> Starting udev Coldplug all Devices...
> Starting udev Kernel Device Manager...
> Starting Syslog Kernel Log Buffer Bridge...
> Started Syslog Kernel Log Buffer Bridge.
> [    9.410090] udevd[410]: starting version 173
> Started udev Kernel Device Manager.
> Started Collect Read-Ahead Data.
> Started Load legacy module configuration.
> Started File System Check on Root Device.
> Starting Remount API VFS...
> Starting Remount Root FS...
> Started Set Up Additional Binary Formats.
> Started Load Kernel Modules.
> Started FUSE Control File System.
> Started Configuration File System.
> Starting Apply Kernel Variables...
> Starting Setup Virtual Console...
> Starting STDOUT Syslog Bridge...
> Started STDOUT Syslog Bridge.
> Started udev Coldplug all Devices.
> Started Remount API VFS.
> Started Apply Kernel Variables.
> Starting udev Wait for Complete Device Initialization...
> Started Security File System.
> Started POSIX Message Queue File System.
> Started Debug File System.
> Started Huge Pages File System.
> [    9.798875] EXT4-fs (dm-1): re-mounted. Opts: (null)
> Started Media Directory.
> Started Remount Root FS.
> Starting Configure read-only root support...
> Started Configure read-only root support.
> Started Setup Virtual Console.
> Starting /dev/mapper/vg_f16test64hvm-lv_swap...
> [   10.958370] Adding 2064380k swap on /dev/mapper/vg_f16test64hvm-lv_swap.  Priority:0 extents:1 across:2064380k 
> Started /dev/mapper/vg_f16test64hvm-lv_swap.
> [   11.009608] piix4_smbus 0000:00:01.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
> [   11.038011] parport_pc 00:0b: reported by Plug and Play ACPI
> [   11.047803] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
> [   11.094629] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
> [   11.125422] 8139cp 0000:00:03.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
> [   11.160994] 8139cp 0000:00:03.0: eth0: RTL-8139C+ at 0xffffc9000019e000, 00:16:3f:03:01:14, IRQ 28
> [   11.186450] ppdev: user-space parallel port driver
> Starting File System Check on /dev/disk/by-uuid/6d0e406a-ac9c-443d-a84c-34d0cc56d2a2...\r[   11.279756] 8139too: 8139too Fast Ethernet driver 0.9.28
> 
> Started udev Wait for Complete Device Initialization.[   11.449395] rmmod[598]: ERROR: Module scsi_wait_scan does not exist in /proc/modules
> 
> Started Show Plymouth Boot Screen.
> Starting Wait for storage scan...
> Started Wait for storage scan.
> Starting Initialize storage subsystems (RAID, LVM, etc.)...
> systemd-fsck[   11.727436] systemd-fsck[591]: /dev/sda2: recovering journal
> [591]: /dev/sda2: recovering journal
> systemd-fsck[591]: /dev/sda2: clean, 219/128016 files, 48307/512000 blocks[   11.841965] systemd-fsck[591]: /dev/sda2: clean, 219/128016 files, 48307/512000 blocks
> 
> Started File System Check on /dev/disk/by-uuid/6d0e406a-ac9c-443d-a84c-34d0cc56d2a2.
> Starting /boot...
> [   12.185717] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
> Started /boot.
> [   12.462997] fedora-storage-init[604]: Setting up Logical Volume Management:   2 logical volume(s) in volume group "vg_f16test64hvm" now active
> Started Initialize storage subsystems (RAID, LVM, etc.).
> Starting Initialize storage subsystems (RAID, LVM, etc.)...
> [   12.528806] fedora-storage-init[604]: [  OK  ]
> [   12.639613] fedora-storage-init[618]: Setting up Logical Volume Management:   2 logical volume(s) in volume group "vg_f16test64hvm" now active
> Started Initialize storage subsystems (RAID, LVM, etc.).
> Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
> [   12.787931] fedora-storage-init[618]: [  OK  ]
> [   12.857150] lvm[624]: 2 logical volume(s) in volume group "vg_f16test64hvm" monitored
> Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
> Started Mark the need to relabel after reboot.
> Started Relabel all filesystems, if necessary.
> Started Reconfigure the system on administrator request.
> Starting Load Random Seed...
> Starting Tell Plymouth To Write Out Runtime Data...
> Starting Recreate Volatile Files and Directories...
> Started Load Random Seed.
> [   13.065835] systemd-tmpfiles[629]: Successfully loaded SELinux database in 36ms 529us, size on heap is 476K.
> Started Tell Plymouth To Write Out Runtime Data.
> Started Recreate Volatile Files and Directories.
> Starting LSB: Mount and unmount network filesystems....
> Starting IPv4 firewall with iptables...
> Starting IPv6 firewall with ip6tables...
> Starting Security Auditing Service...
> Starting SSH server keys generation....\r[   13.419101] auditd[635]: Started dispatcher: /sbin/audispd pid: 645
> 
> Starting Sendmail Mail Transport Agent...
> Starting System Logging Service...
> Starting Login Service...
> Started /etc/rc.local Compatibility.
> Starting Wait for Plymouth Boot Screen to Quit...
> Starting Terminate Plymouth Boot Screen...
> Starting D-Bus System Message Bus...
> Stopping Syslog Kernel Log Buffer Bridge...
> [   14.410603] nf_conntrack version 0.5.0 (7964 buckets, 31856 max)
> [   14.418528] ip6_tables: (C) 2000-2006 Netfilter Core Team
> [   28.998481] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
> [  149.712071] ------------[ cut here ]------------
> [  149.717216] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xf0/0x150()
> [  149.724709] Hardware name: HVM domU
> [  149.728738] NETDEV WATCHDOG: eth0 (8139cp): transmit queue 0 timed out
> [  149.735537] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
> [  149.768028] Pid: 0, comm: swapper Not tainted 3.1.0-5.fc16.x86_64 #1
> [  149.774639] Call Trace:
> [  149.777765]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
> [  149.784024]  [<ffffffff81057b11>] warn_slowpath_fmt+0x46/0x48
> [  149.790141]  [<ffffffff813ef49d>] ? netif_tx_lock+0x4a/0x7c
> [  149.799007]  [<ffffffff813ef613>] dev_watchdog+0xf0/0x150
> [  149.806361]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
> [  149.814392]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.821650]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
> [  149.828926]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
> [  149.836803]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.843422]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
> [  149.850067]  [<ffffffff81010b45>] do_softirq+0x46/0x81
> [  149.856760]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
> [  149.863035]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
> [  149.871144]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
> [  149.879494]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
> [  149.888220]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
> [  149.894962]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
> [  149.901461]  [<ffffffff814934ee>] rest_init+0x72/0x74
> [  149.908949]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
> [  149.916617]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
> [  149.929148]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
> [  149.936797]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
> [  149.944336] ---[ end trace d8786cb7d6a57f8a ]---
> [  149.950406] 8139cp 0000:00:03.0: eth0: Transmit timeout, status  d   3b   15 80ff
> [  149.961879] ------------[ cut here ]------------
> [  149.962245] WARNING: at kernel/softirq.c:159 _local_bh_enable_ip+0x44/0x8e()
> [  149.962245] Hardware name: HVM domU
> [  149.962245] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
> [  149.962245] Pid: 0, comm: swapper Tainted: G        W   3.1.0-5.fc16.x86_64 #1
> [  149.962245] Call Trace:
> [  149.962245]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
> [  149.962245]  [<ffffffff813ce599>] ? skb_release_data+0xca/0xcf
> [  149.962245]  [<ffffffff81057a88>] warn_slowpath_null+0x1a/0x1c
> [  149.962245]  [<ffffffff8105d462>] _local_bh_enable_ip+0x44/0x8e
> [  149.962245]  [<ffffffff8105d4ba>] local_bh_enable_ip+0xe/0x10
> [  149.962245]  [<ffffffff814b5db4>] _raw_spin_unlock_bh+0x15/0x17
> [  149.962245]  [<ffffffffa0053969>] destroy_conntrack+0x9d/0xdc [nf_conntrack]
> [  149.962245]  [<ffffffff813fa343>] nf_conntrack_destroy+0x19/0x1b
> [  149.962245]  [<ffffffff813ce7ad>] skb_release_head_state+0xa7/0xef
> [  149.962245]  [<ffffffff813ce5b1>] __kfree_skb+0x13/0x83
> [  149.962245]  [<ffffffff813ce677>] consume_skb+0x56/0x6b
> [  149.962245]  [<ffffffffa003c1b9>] cp_clean_rings+0xb4/0x114 [8139cp]
> [  149.962245]  [<ffffffffa003c371>] cp_tx_timeout+0x88/0x10e [8139cp]
> [  149.962245]  [<ffffffff813ef627>] dev_watchdog+0x104/0x150
> [  149.962245]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
> [  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.962245]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
> [  149.962245]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
> [  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
> [  149.962245]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
> [  149.962245]  [<ffffffff81010b45>] do_softirq+0x46/0x81
> [  149.962245]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
> [  149.962245]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
> [  149.962245]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
> [  149.962245]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
> [  149.962245]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
> [  149.962245]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
> [  149.962245]  [<ffffffff814934ee>] rest_init+0x72/0x74
> [  149.962245]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
> [  149.962245]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
> [  149.962245]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
> [  149.962245]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
> [  149.962245] ---[ end trace d8786cb7d6a57f8b ]---

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply

* [U-Boot] [PATCH V3] Arm: re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board
From: Jens Scharsig @ 2011-10-31 18:52 UTC (permalink / raw)
  To: u-boot
In-Reply-To: <1320045966-25187-1-git-send-email-js_at_ng@scharsoft.de>


* re-introduce the MACH_TYPE_XXXXXX for EB_CPUX9K2 board

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
---
 include/configs/eb_cpux9k2.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/configs/eb_cpux9k2.h b/include/configs/eb_cpux9k2.h
index 4324172..b08de4a 100644
--- a/include/configs/eb_cpux9k2.h
+++ b/include/configs/eb_cpux9k2.h
@@ -41,6 +41,8 @@
 #define CONFIG_MISC_INIT_R
 #define CONFIG_BOARD_EARLY_INIT_F
 
+#define MACH_TYPE_EB_CPUX9K2		1977
+#define CONFIG_MACH_TYPE		MACH_TYPE_EB_CPUX9K2
 /*--------------------------------------------------------------------------*/
 #define CONFIG_SYS_TEXT_BASE 		0x00000000
 #define CONFIG_SYS_LOAD_ADDR		0x21000000  /* default load address */
-- 
1.7.3.4

^ permalink raw reply related

* Re: [Qemu-devel] [PATCH] Support running QEMU on Valgrind
From: Stefan Weil @ 2011-10-31 18:51 UTC (permalink / raw)
  To: Daniel P. Berrange; +Cc: Avi Kivity, Markus Armbruster, qemu-devel
In-Reply-To: <20111031182248.GJ27570@redhat.com>

Am 31.10.2011 19:22, schrieb Daniel P. Berrange:
> On Sun, Oct 30, 2011 at 01:07:26PM +0100, Stefan Weil wrote:
>> Valgrind is a tool which can automatically detect many kinds of bugs.
>>
>> Running QEMU on Valgrind with x86_64 hosts was not possible because
>> Valgrind aborts when memalign is called with an alignment larger than
>> 1 MiB. QEMU normally uses 2 MiB on Linux x86_64.
>>
>> Now the alignment is reduced to the page size when QEMU is running on
>> Valgrind.
>>
>> valgrind.h is a copy from Valgrind svn trunk r12226 with trailing
>> whitespace stripped but otherwise unmodified, so it still raises lots
>> of errors when checked with scripts/checkpatch.pl.
>>
>> It is included here to avoid a dependency on Valgrind.
>
> In libvirt we do the following fun hack to avoid a build dep on valgrind:
>
> const char *ld = getenv("LD_PRELOAD");
> if (ld && strstr(ld, "vgpreload")) {
> fprintf(stderr, "Running under valgrind, disabling driver\n");
> return 0;
> }
>
> Regards,
> Daniel

Thanks, Daniel.

That works, although it is not the official way and it would fail
if vgpreload were renamed.

It is much slower than the offical macro, so the test would
have to be done once and save the result in a static variable.

As it solves the current problem with QEMU on Valgrind,
this solution would be better than no solution, so if more
people agree, it could be done like this.

 From other mails, I expect that the 2 MiB alignment will
be used in more scenarios (any host and operating system
which supports KVM). As far as I know, Valgrind runs
on ARM, PPC, S390, BSD, ..., too, and latest valgrind.h
is designed to support all those scenarios. I have no
idea whether the vgpreload hack also works everywhere.

Regards,
Stefan

^ permalink raw reply

* Re: [PATCH 01/14] KVM: PPC: e500: don't translate gfn to pfn with preemption disabled
From: Scott Wood @ 2011-10-31 18:52 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Alexander Graf, kvm-ppc, kvm list, Marcelo Tosatti
In-Reply-To: <4EAE99A0.7050903@redhat.com>

On 10/31/2011 07:50 AM, Avi Kivity wrote:
> On 10/31/2011 09:53 AM, Alexander Graf wrote:
>> +/* sesel is index into the set, not the whole array */
>> +static void write_stlbe(struct kvmppc_vcpu_e500 *vcpu_e500,
>> +			struct tlbe *gtlbe,
>> +			struct tlbe *stlbe,
>> +			int stlbsel, int sesel)
>> +{
>> +	int stid;
>> +
>> +	preempt_disable();
>> +	stid = kvmppc_e500_get_sid(vcpu_e500, get_tlb_ts(gtlbe),
>> +				   get_tlb_tid(gtlbe),
>> +				   get_cur_pr(&vcpu_e500->vcpu), 0);
>> +
>> +	stlbe->mas1 |= MAS1_TID(stid);
>> +	write_host_tlbe(vcpu_e500, stlbsel, sesel, stlbe);
>> +	preempt_enable();
>> +}
>> +
>>
> 
> This naked preempt_disable() is fishy.  What happens if we're migrated
> immediately afterwards? we fault again and redo?

Yes, we'll fault again.

We just want to make sure that the sid is still valid when we write the
TLB entry.  If we migrate, we'll get a new sid and the old TLB entry
will be irrelevant, even if we migrate back to the same CPU.  The entire
TLB will be flushed before a sid is reused.

If we don't do the preempt_disable(), we could get the sid on one CPU
and then get migrated and run it on another CPU where that sid is (or
will be) valid for a different context.  Or we could run out of sids
while preempted, making the sid allocated before this possibly valid for
a different context.

-Scott

^ permalink raw reply

* Re: [PATCH 01/14] KVM: PPC: e500: don't translate gfn to pfn with
From: Scott Wood @ 2011-10-31 18:52 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Alexander Graf, kvm-ppc, kvm list, Marcelo Tosatti
In-Reply-To: <4EAE99A0.7050903@redhat.com>

On 10/31/2011 07:50 AM, Avi Kivity wrote:
> On 10/31/2011 09:53 AM, Alexander Graf wrote:
>> +/* sesel is index into the set, not the whole array */
>> +static void write_stlbe(struct kvmppc_vcpu_e500 *vcpu_e500,
>> +			struct tlbe *gtlbe,
>> +			struct tlbe *stlbe,
>> +			int stlbsel, int sesel)
>> +{
>> +	int stid;
>> +
>> +	preempt_disable();
>> +	stid = kvmppc_e500_get_sid(vcpu_e500, get_tlb_ts(gtlbe),
>> +				   get_tlb_tid(gtlbe),
>> +				   get_cur_pr(&vcpu_e500->vcpu), 0);
>> +
>> +	stlbe->mas1 |= MAS1_TID(stid);
>> +	write_host_tlbe(vcpu_e500, stlbsel, sesel, stlbe);
>> +	preempt_enable();
>> +}
>> +
>>
> 
> This naked preempt_disable() is fishy.  What happens if we're migrated
> immediately afterwards? we fault again and redo?

Yes, we'll fault again.

We just want to make sure that the sid is still valid when we write the
TLB entry.  If we migrate, we'll get a new sid and the old TLB entry
will be irrelevant, even if we migrate back to the same CPU.  The entire
TLB will be flushed before a sid is reused.

If we don't do the preempt_disable(), we could get the sid on one CPU
and then get migrated and run it on another CPU where that sid is (or
will be) valid for a different context.  Or we could run out of sids
while preempted, making the sid allocated before this possibly valid for
a different context.

-Scott


^ permalink raw reply

* [U-Boot] [PATCH] image: Allow images to indicate they're loadable at any address
From: Simon Glass @ 2011-10-31 18:49 UTC (permalink / raw)
  To: u-boot
In-Reply-To: <201110311936.20941.marek.vasut@gmail.com>

Hi Marek,

On Mon, Oct 31, 2011 at 11:36 AM, Marek Vasut <marek.vasut@gmail.com> wrote:
>> The legacy uImage format includes an absolute load and entry-
>> point address. When presented with a uImage in memory that
>> isn't loaded at the address in the image's load address,
>> U-Boot will relocate the image to its address in the header.
>>
>> Some payloads can actually be loaded and used at any arbitrary
>> address. An example is an ARM Linux kernel zImage file. This
>> is useful when sharing a single zImage across multiple boards
>> with different memory layouts, or U-Boot builds with different
>> ${load_addr} since sharing a single absolute load address may
>> not be possible.
>>
>> With this config option enabled, an image header may contain a
>> load address of -1/0xffffffff. This indicates the image can
>> operate at any load address, and U-Boot will avoid automtically
>> copying it anywhere. In this case, the entry-point field is
>> specified relative to the start of the image payload.
>>
>> Signed-off-by: Stephen Warren <swarren@nvidia.com>
>> ---
>> Wolfgang,
>>
>> This is an much simpler and less invasive alternative to my previous
>> IH_TYPE_KERNEL_REL patch. If it's OK, you can ignore that patch.
>>
>> u-boot.bin sizes for Tegra Seaboard without/with this config option on:
>>
>> ? ?text ? ? ? ? ?data ? ? bss ? ? dec ? ? hex filename
>> ?165858 ? ? ? ? ?3565 ?217016 ?386439 ? 5e587 ./u-boot
>>
>> with:
>>
>> ? ?text ? ? ? ? ?data ? ? bss ? ? dec ? ? hex filename
>> ?165950 ? ? ? ? ?3565 ?217012 ?386527 ? 5e5df ./u-boot
>>
>
> [...]
>
> This one doesn't apply on top of current u-boot master

You need to revert Stephen's clean-up patch 1/2 712fbcf to test this.

Regards,
Simon

> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

^ permalink raw reply

* Xen 4.1.2 HVM guest realtek nic problems (eth0 8139cp transmit queue timed out)
From: Pasi Kärkkäinen @ 2011-10-31 18:49 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 6530 bytes --]

Hello,

While testing Xen 4.1.2 and HVM guests I noticed the following problem
with Fedora 16 HVM guests (using Linux 3.1.0 kernel in the VM):

The errors (call trace) happens pretty much immediately when there's some network traffic going on..

Simple "yum update" in the VM triggers the problem..


[    0.000000] Linux version 3.1.0-5.fc16.x86_64 (mockbuild@x86-10.phx2.fedoraproject.org) (gcc version 4.6.1 20111003 (Red Hat 4.6.1-10) (GCC) ) #1 SMP Thu Oct 27 03:46:50 UTC 2011
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.1.0-5.fc16.x86_64 root=/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=vg_f16test64hvm/lv_root rd.dm=0 SYSFONT=latarcyrheb-sun16 rhgb KEYTABLE=fi rd.md=0 rd.luks=0 rd.lvm.lv=vg_f16test64hvm/lv_swap LANG=en_US.UTF-8 console=ttyS0,38400 console=tty0
<snip>

[   28.998481] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
[  149.712071] ------------[ cut here ]------------
[  149.717216] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xf0/0x150()
[  149.724709] Hardware name: HVM domU
[  149.728738] NETDEV WATCHDOG: eth0 (8139cp): transmit queue 0 timed out
[  149.735537] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 81
39too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
[  149.768028] Pid: 0, comm: swapper Not tainted 3.1.0-5.fc16.x86_64 #1
[  149.774639] Call Trace:
[  149.777765]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
[  149.784024]  [<ffffffff81057b11>] warn_slowpath_fmt+0x46/0x48
[  149.790141]  [<ffffffff813ef49d>] ? netif_tx_lock+0x4a/0x7c
[  149.799007]  [<ffffffff813ef613>] dev_watchdog+0xf0/0x150
[  149.806361]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
[  149.814392]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.821650]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
[  149.828926]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
[  149.836803]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.843422]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
[  149.850067]  [<ffffffff81010b45>] do_softirq+0x46/0x81
[  149.856760]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
[  149.863035]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
[  149.871144]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
[  149.879494]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
[  149.888220]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
[  149.894962]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
[  149.901461]  [<ffffffff814934ee>] rest_init+0x72/0x74
[  149.908949]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
[  149.916617]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
[  149.929148]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
[  149.936797]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
[  149.944336] ---[ end trace d8786cb7d6a57f8a ]---
[  149.950406] 8139cp 0000:00:03.0: eth0: Transmit timeout, status  d   3b   15 80ff
[  149.961879] ------------[ cut here ]------------
[  149.962245] WARNING: at kernel/softirq.c:159 _local_bh_enable_ip+0x44/0x8e()
[  149.962245] Hardware name: HVM domU
[  149.962245] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
[  149.962245] Pid: 0, comm: swapper Tainted: G        W   3.1.0-5.fc16.x86_64 #1
[  149.962245] Call Trace:
[  149.962245]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
[  149.962245]  [<ffffffff813ce599>] ? skb_release_data+0xca/0xcf
[  149.962245]  [<ffffffff81057a88>] warn_slowpath_null+0x1a/0x1c
[  149.962245]  [<ffffffff8105d462>] _local_bh_enable_ip+0x44/0x8e
[  149.962245]  [<ffffffff8105d4ba>] local_bh_enable_ip+0xe/0x10
[  149.962245]  [<ffffffff814b5db4>] _raw_spin_unlock_bh+0x15/0x17
[  149.962245]  [<ffffffffa0053969>] destroy_conntrack+0x9d/0xdc [nf_conntrack]
[  149.962245]  [<ffffffff813fa343>] nf_conntrack_destroy+0x19/0x1b
[  149.962245]  [<ffffffff813ce7ad>] skb_release_head_state+0xa7/0xef
[  149.962245]  [<ffffffff813ce5b1>] __kfree_skb+0x13/0x83
[  149.962245]  [<ffffffff813ce677>] consume_skb+0x56/0x6b
[  149.962245]  [<ffffffffa003c1b9>] cp_clean_rings+0xb4/0x114 [8139cp]
[  149.962245]  [<ffffffffa003c371>] cp_tx_timeout+0x88/0x10e [8139cp]
[  149.962245]  [<ffffffff813ef627>] dev_watchdog+0x104/0x150
[  149.962245]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
[  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.962245]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
[  149.962245]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
[  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.962245]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
[  149.962245]  [<ffffffff81010b45>] do_softirq+0x46/0x81
[  149.962245]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
[  149.962245]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
[  149.962245]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
[  149.962245]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
[  149.962245]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
[  149.962245]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
[  149.962245]  [<ffffffff814934ee>] rest_init+0x72/0x74
[  149.962245]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
[  149.962245]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
[  149.962245]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
[  149.962245]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
[  149.962245] ---[ end trace d8786cb7d6a57f8b ]---

Full guest kernel dmesg attached to this email.
The host is running F16 with Xen 4.1.2 and Linux 3.1.0 dom0 kernel.

Xen cfgfile for the HVM domain:

kernel = "hvmloader"
builder='hvm'
device_model = 'qemu-dm'
name = "f16test64hvm"
memory = 1024
vcpus=1
pae=1
acpi=1
apic=1
vif = [ 'type=ioemu, mac=00:16:3f:03:01:14, bridge=virbr0' ]
disk = [ 'phy:/dev/vg_f16/f16test64hvm,hda,w', 'file:/root/iso/Fedora-16-Final-RC2-x86_64-DVD.iso,hdc:cdrom,r' ]
boot='cd'
xen_platform_pci=0
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
sdl=0
vnc=1
vncpasswd=''
stdvga=0
serial='pty'
tsc_mode=0
usb=1
usbdevice='tablet'
keymap='fi'


Using "model=e1000" instead for the vif works OK.. no problems with the emulated intel nic.

Any ideas what the problem with the emulated realtek nic? 

Thanks,


-- Pasi


[-- Attachment #2: xen-4.1.2-f16test64hvm-linux-3.1.0-realtek-problem.log --]
[-- Type: text/plain, Size: 33979 bytes --]

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.1.0-5.fc16.x86_64 (mockbuild@x86-10.phx2.fedoraproject.org) (gcc version 4.6.1 20111003 (Red Hat 4.6.1-10) (GCC) ) #1 SMP Thu Oct 27 03:46:50 UTC 2011
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.1.0-5.fc16.x86_64 root=/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=vg_f16test64hvm/lv_root rd.dm=0 SYSFONT=latarcyrheb-sun16 rhgb KEYTABLE=fi rd.md=0 rd.luks=0 rd.lvm.lv=vg_f16test64hvm/lv_swap LANG=en_US.UTF-8 console=ttyS0,38400 console=tty0
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009e000 (usable)
[    0.000000]  BIOS-e820: 000000000009e000 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 0000000040000000 (usable)
[    0.000000]  BIOS-e820: 00000000fc000000 - 0000000100000000 (reserved)
[    0.000000] Using x86 segment limits to approximate NX protection
[    0.000000] DMI 2.4 present.
[    0.000000] Hypervisor detected: Xen HVM
[    0.000000] Xen version 4.1.
[    0.000000] Xen Platform PCI: unrecognised magic value
[    0.000000] No AGP bridge found
[    0.000000] last_pfn = 0x40000 max_arch_pfn = 0x400000000
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] found SMP MP-table at [ffff8800000fbc70] fbc70
[    0.000000] init_memory_mapping: 0000000000000000-0000000040000000
[    0.000000] RAMDISK: 36608000 - 372fc000
[    0.000000] ACPI: RSDP 00000000000ea020 00024 (v02    Xen)
[    0.000000] ACPI: XSDT 00000000fc0134b0 00034 (v01    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: FACP 00000000fc0132d0 000F4 (v04    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: DSDT 00000000fc003440 0FE05 (v02    Xen      HVM 00000000 INTL 20100528)
[    0.000000] ACPI: FACS 00000000fc003400 00040
[    0.000000] ACPI: APIC 00000000fc0133d0 000D8 (v02    Xen      HVM 00000000 HVML 00000000)
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at 0000000000000000-0000000040000000
[    0.000000] Initmem setup node 0 0000000000000000-0000000040000000
[    0.000000]   NODE_DATA [000000003ffec000 - 000000003fffffff]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000010 -> 0x00001000
[    0.000000]   DMA32    0x00001000 -> 0x00100000
[    0.000000]   Normal   empty
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[2] active PFN ranges
[    0.000000]     0: 0x00000010 -> 0x0000009e
[    0.000000]     0: 0x00000100 -> 0x00040000
[    0.000000] ACPI: PM-Timer IO Port: 0xb008
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x08] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x0a] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x0c] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x0e] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x10] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x12] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x14] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x16] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x18] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x1a] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x1c] disabled)
[    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] SMP: Allowing 15 CPUs, 14 hotplug CPUs
[    0.000000] PM: Registered nosave memory: 000000000009e000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000e0000
[    0.000000] PM: Registered nosave memory: 00000000000e0000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at 40000000 (gap: 40000000:bc000000)
[    0.000000] Booting paravirtualized kernel on Xen HVM
[    0.000000] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:15 nr_node_ids:1
[    0.000000] PERCPU: Embedded 27 pages/cpu @ffff88003fc00000 s81024 r8192 d21376 u131072
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 257929
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.1.0-5.fc16.x86_64 root=/dev/mapper/vg_f16test64hvm-lv_root ro rd.lvm.lv=vg_f16test64hvm/lv_root rd.dm=0 SYSFONT=latarcyrheb-sun16 rhgb KEYTABLE=fi rd.md=0 rd.luks=0 rd.lvm.lv=vg_f16test64hvm/lv_swap LANG=en_US.UTF-8 console=ttyS0,38400 console=tty0
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 1002468k/1048576k available (4867k kernel code, 456k absent, 45652k reserved, 6782k data, 940k init)
[    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU dyntick-idle grace-period acceleration is enabled.
[    0.000000] NR_IRQS:16640 nr_irqs:1208 16
[    0.000000] Xen HVM callback vector for event delivery is enabled
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] allocated 8388608 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Detected 2677.244 MHz processor.
[    0.005999] Calibrating delay loop (skipped), value calculated using timer frequency.. 5354.48 BogoMIPS (lpj=2677244)
[    0.015004] pid_max: default: 32768 minimum: 301
[    0.021037] Security Framework initialized
[    0.025012] SELinux:  Initializing.
[    0.030209] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.039268] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.047115] Mount-cache hash table entries: 256
[    0.051161] Initializing cgroup subsys cpuacct
[    0.056007] Initializing cgroup subsys memory
[    0.060013] Initializing cgroup subsys devices
[    0.063998] Initializing cgroup subsys freezer
[    0.071007] Initializing cgroup subsys net_cls
[    0.077002] Initializing cgroup subsys blkio
[    0.092016] Initializing cgroup subsys perf_event
[    0.097110] CPU: Physical Processor ID: 0
[    0.105998] CPU: Processor Core ID: 0
[    0.114998] mce: CPU supports 9 MCE banks
[    0.120027] SMP alternatives: switching to UP code
[    0.137406] ACPI: Core revision 20110623
[    0.154723] ftrace: allocating 25204 entries in 99 pages
[    0.203985] Not enabling x2apic, Intr-remapping init failed.
[    0.212983] Switched APIC routing to physical flat.
[    0.227511] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[    0.247910] CPU0: Intel(R) Core(TM) i5 CPU       M 560  @ 2.67GHz stepping 05
[    0.266997] installing Xen timer for CPU 0
[    0.279095] Performance Events: unsupported p6 CPU model 37 no PMU driver, software events only.
[    0.288052] NMI watchdog disabled (cpu0): hardware events not enabled
[    0.289014] Brought up 1 CPUs
[    0.289980] Total of 1 processors activated (5354.48 BogoMIPS).
[    0.295080] devtmpfs: initialized
[    0.334074] atomic64 test passed for x86-64 platform with CX8 and with SSE
[    0.335009] RTC time: 18:48:31, date: 10/31/11
[    0.336031] NET: Registered protocol family 16
[    0.340028] ACPI: bus type pci registered
[    0.343066] PCI: Using configuration type 1 for base access
[    0.352055] bio: create slab <bio-0> at 0
[    0.354016] ACPI: Added _OSI(Module Device)
[    0.354986] ACPI: Added _OSI(Processor Device)
[    0.355988] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.356976] ACPI: Added _OSI(Processor Aggregator Device)
[    0.461035] ACPI: Interpreter enabled
[    0.461960] ACPI: (supports S0 S3 S4 S5)
[    0.466962] ACPI: Using IOAPIC for interrupt routing
[    1.042887] ACPI: No dock devices found.
[    1.043879] HEST: Table not found.
[    1.044874] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    1.045996] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    1.047922] pci_root PNP0A03:00: host bridge window [io  0x0000-0x0cf7]
[    1.048872] pci_root PNP0A03:00: host bridge window [io  0x0d00-0xffff]
[    1.049876] pci_root PNP0A03:00: host bridge window [mem 0x000a0000-0x000bffff]
[    1.050885] pci_root PNP0A03:00: host bridge window [mem 0xf0000000-0xfbffffff]
[    1.148854] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
[    1.148856] * this clock source is slow. Consider trying other clock sources
[    1.174862] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
[    1.249999]  pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e)
[    1.988937] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
[    1.995734] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[    2.002022] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[    2.007986] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11)
[    2.013926] xen/balloon: Initialising balloon driver.
[    2.014721] last_pfn = 0x40000 max_arch_pfn = 0x400000000
[    2.015744] xen-balloon: Initialising balloon driver.
[    2.016893] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    2.017723] vgaarb: loaded
[    2.018717] vgaarb: bridge control possible 0000:00:02.0
[    2.019908] SCSI subsystem initialized
[    2.020926] usbcore: registered new interface driver usbfs
[    2.021751] usbcore: registered new interface driver hub
[    2.022778] usbcore: registered new device driver usb
[    2.023833] PCI: Using ACPI for IRQ routing
[    2.027000] NetLabel: Initializing
[    2.027726] NetLabel:  domain hash size = 128
[    2.028719] NetLabel:  protocols = UNLABELED CIPSOv4
[    2.029771] NetLabel:  unlabeled traffic allowed by default
[    2.030738] Switching to clocksource xen
[    2.032064] Switched to NOHz mode on CPU #0
[    2.058600] pnp: PnP ACPI init
[    2.070312] ACPI: bus type pnp registered
[    2.081358] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
[    2.105526] system 00:02: [io  0x10c0-0x1141] has been reserved
[    2.123586] system 00:02: [io  0xb044-0xb047] has been reserved
[    2.140716] system 00:03: [io  0x08a0-0x08a3] has been reserved
[    2.155376] system 00:03: [io  0x0cc0-0x0ccf] has been reserved
[    2.171720] system 00:03: [io  0x04d0-0x04d1] has been reserved
[    2.235079] pnp: PnP ACPI: found 12 devices
[    2.239980] ACPI: ACPI bus type pnp unregistered
[    2.252651] NET: Registered protocol family 2
[    2.262951] IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
[    2.271095] TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
[    2.282685] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    2.293164] TCP: Hash tables configured (established 131072 bind 65536)
[    2.302409] TCP reno registered
[    2.307217] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    2.317125] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    2.326389] NET: Registered protocol family 1
[    2.331960] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    2.341391] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    2.353138] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    2.361559] Unpacking initramfs...
[    2.699968] Freeing initrd memory: 13264k freed
[    2.710147] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[    2.717216] audit: initializing netlink socket (disabled)
[    2.722974] type=2000 audit(1320086915.409:1): initialized
[    2.752235] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    2.764915] VFS: Disk quotas dquot_6.5.2
[    2.769491] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    2.776668] msgmni has been set to 1983
[    2.781504] alg: No test for stdrng (krng)
[    2.787102] NET: Registered protocol family 38
[    2.792422] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    2.801199] io scheduler noop registered
[    2.806077] io scheduler deadline registered
[    2.811278] io scheduler cfq registered (default)
[    2.818821] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    2.825681] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    2.831486] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    2.838723] acpiphp: Slot [0] registered
[    2.842985] acpiphp: Slot [1] registered
[    2.847352] acpiphp: Slot [2] registered
[    2.851192] acpiphp: Slot [3] registered
[    2.855526] acpiphp: Slot [4] registered
[    2.859987] acpiphp: Slot [5] registered
[    2.865216] acpiphp: Slot [6] registered
[    2.870721] acpiphp: Slot [7] registered
[    2.875193] acpiphp: Slot [8] registered
[    2.882170] acpiphp: Slot [9] registered
[    2.887602] acpiphp: Slot [10] registered
[    2.893553] acpiphp: Slot [11] registered
[    2.901005] acpiphp: Slot [12] registered
[    2.909484] acpiphp: Slot [13] registered
[    2.927108] acpiphp: Slot [14] registered
[    2.936646] acpiphp: Slot [15] registered
[    2.947352] acpiphp: Slot [16] registered
[    2.959370] acpiphp: Slot [17] registered
[    2.975306] acpiphp: Slot [18] registered
[    2.986962] acpiphp: Slot [19] registered
[    2.998507] acpiphp: Slot [20] registered
[    3.008809] acpiphp: Slot [21] registered
[    3.019088] acpiphp: Slot [22] registered
[    3.028701] acpiphp: Slot [23] registered
[    3.041087] acpiphp: Slot [24] registered
[    3.054701] acpiphp: Slot [25] registered
[    3.088485] acpiphp: Slot [26] registered
[    3.096559] acpiphp: Slot [27] registered
[    3.104123] acpiphp: Slot [28] registered
[    3.112335] acpiphp: Slot [29] registered
[    3.120729] acpiphp: Slot [30] registered
[    3.128063] acpiphp: Slot [31] registered
[    3.140336] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    3.152824] ACPI: Power Button [PWRF]
[    3.159164] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
[    3.170535] ACPI: Sleep Button [SLPF]
[    3.240741] ERST: Table is not found!
[    3.247178] GHES: HEST is not enabled!
[    3.255081] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    3.299342] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    3.339144] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    3.348389] Non-volatile memory driver v1.3
[    3.359031] Linux agpgart interface v0.103
[    3.373452] loop: module loaded
[    3.380620] scsi0 : ata_piix
[    3.385158] scsi1 : ata_piix
[    3.392804] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc120 irq 14
[    3.406093] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc128 irq 15
[    3.424665] Fixed MDIO Bus: probed
[    3.432049] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.452302] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.465814] uhci_hcd: USB Universal Host Controller Interface driver
[    3.480645] uhci_hcd 0000:00:01.2: PCI INT D -> GSI 23 (level, low) -> IRQ 23
[    3.495010] uhci_hcd 0000:00:01.2: UHCI Host Controller
[    3.509922] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[    3.532921] uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c100
[    3.556237] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    3.577164] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.597277] usb usb1: Product: UHCI Host Controller
[    3.609990] usb usb1: Manufacturer: Linux 3.1.0-5.fc16.x86_64 uhci_hcd
[    3.623617] usb usb1: SerialNumber: 0000:00:01.2
[    3.633485] hub 1-0:1.0: USB hub found
[    3.641829] hub 1-0:1.0: 2 ports detected
[    3.654394] usbcore: registered new interface driver usbserial
[    3.834631] Refined TSC clocksource calibration: 2677.188 MHz.
[    3.849203] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
[    3.860117] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
[    3.867830] ata1.00: 62914560 sectors, multi 16: LBA48 
[    3.880575] ata2.00: configured for MWDMA2
[    3.888438] ata1.00: configured for MWDMA2
[    3.897324] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
[    3.909309] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.921146] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.10 PQ: 0 ANSI: 5
[    3.940204] sd 0:0:0:0: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
[    3.953575] sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
[    3.972245] cdrom: Uniform CD-ROM driver Revision: 3.20
[    3.985565] sd 0:0:0:0: [sda] Write Protect is off
[    3.995242] sr 1:0:0:0: Attached scsi generic sg1 type 5
[    4.003515] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.030638] USB Serial support registered for generic
[    4.071098] usb 1-2: new full speed USB device number 2 using uhci_hcd
[    4.116603]  sda: sda1 sda2 sda3
[    4.122784] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.279332] usb 1-2: New USB device found, idVendor=0627, idProduct=0001
[    4.285003] usb 1-2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.291626] usb 1-2: Product: QEMU USB Tablet
[    4.296035] usb 1-2: Manufacturer: QEMU 0.10.2
[    4.301072] usb 1-2: SerialNumber: 1
[    4.327941] usbcore: registered new interface driver usbserial_generic
[    4.334045] usbserial: USB Serial Driver core
[    4.338689] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    4.356131] serio: i8042 KBD port at 0x60,0x64 irq 1
[    4.365819] serio: i8042 AUX port at 0x60,0x64 irq 12
[    4.377814] mousedev: PS/2 mouse device common for all mice
[    4.391350] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
[    4.409931] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
[    4.423898] rtc0: alarms up to one day, 114 bytes nvram
[    4.435841] device-mapper: uevent: version 1.0.3
[    4.449590] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[    4.495727] cpuidle: using governor ladder
[    4.504718] cpuidle: using governor menu
[    4.513536] EFI Variables Facility v0.08 2004-May-17
[    4.552133] input: QEMU 0.10.2 QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-2/1-2:1.0/input/input3
[    4.574945] generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU 0.10.2 QEMU USB Tablet] on usb-0000:00:01.2-2/input0
[    4.604382] usbcore: registered new interface driver usbhid
[    4.615480] usbhid: USB HID core driver
[    4.632689] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.642932] TCP cubic registered
[    4.650070] Initializing XFRM netlink socket
[    4.659989] NET: Registered protocol family 10
[    4.670710] Mobile IPv6
[    4.676439] NET: Registered protocol family 17
[    4.686698] Registering the dns_resolver key type
[    4.698703] registered taskstats version 1
[    4.710470] IMA: No TPM chip found, activating TPM-bypass!
[    4.727752]   Magic number: 15:53:849
[    4.737301] graphics fbcon: hash matches
[    4.747845] rtc_cmos 00:05: setting system clock to 2011-10-31 18:48:35 UTC (1320086915)
[    4.766933] Initializing network drop monitor service
[    4.778567] Freeing unused kernel memory: 940k freed
[    4.790390] Write protecting the kernel read-only data: 10240k
[    4.816829] Freeing unused kernel memory: 1260k freed
[    4.847132] Freeing unused kernel memory: 1584k freed
[    4.946739] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
[    5.069194] dracut: dracut-013-16.fc16
[    5.086672] udevd[115]: starting version 173
[    5.237375] dracut: Starting plymouth daemon
^[%G[    5.437681] dracut: rd.dm=0: removing DM RAID activation
[    5.456883] dracut: rd.md.imsm=0: no MD RAID for imsm/isw raids
[    5.471879] dracut: rd.md.ddf=0: no MD RAID for SNIA ddf raids
^[%G[    6.056855] dracut: Scanning devices sda3  for LVM logical volumes vg_f16test64hvm/lv_root vg_f16test64hvm/lv_swap
[    6.099044] dracut: inactive '/dev/vg_f16test64hvm/lv_swap' [1.97 GiB] inherit
[    6.107308] dracut: inactive '/dev/vg_f16test64hvm/lv_root' [27.53 GiB] inherit
[    6.615218] EXT4-fs (dm-1): INFO: recovery required on readonly filesystem
[    6.623572] EXT4-fs (dm-1): write access will be enabled during recovery
[    7.513709] EXT4-fs (dm-1): recovery complete
[    7.539777] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[    7.596678] dracut: Checking ext4: /dev/mapper/vg_f16test64hvm-lv_root
[    7.603638] dracut: issuing e2fsck -a  /dev/mapper/vg_f16test64hvm-lv_root
[    7.657115] dracut: /dev/mapper/vg_f16test64hvm-lv_root: clean, 18709/1806896 files, 289903/7217152 blocks
[    7.666279] dracut: Remounting /dev/mapper/vg_f16test64hvm-lv_root with -o ro
[    7.680814] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[    7.717573] dracut: Mounted root filesystem /dev/mapper/vg_f16test64hvm-lv_root
[    7.854983] dracut: Switching root
[    8.204987] type=1404 audit(1320086918.956:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[    8.329675] type=1403 audit(1320086919.081:3): policy loaded auid=4294967295 ses=4294967295
[    8.353773] systemd[1]: Successfully loaded SELinux policy in 165ms 166us.
[    8.451859] systemd[1]: Successfully loaded SELinux database in 77ms 139us, size on heap is 475K.
[    8.509781] systemd[1]: RTC configured in localtime, applying delta of 120 minutes to system time.
[    8.660676] systemd[1]: Relabelled /dev and /run in 87ms 636us.
[    8.689704] systemd[1]: systemd 36 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +SYSVINIT +LIBCRYPTSETUP; fedora)

Welcome to ^[[0;34mFedora release 16 (Verne)^[[0m!

[    8.755902] systemd[1]: Set hostname to <f16test64hvm.localdomain>.
Starting Collect Read-Ahead Data...
Started Replay Read-Ahead Data.
Starting Media Directory...
[    9.215716] systemd-readahead-collect[402]: Disabling readahead collector due to execution in virtualized environment.
Started Lock Directory.
Started Runtime Directory.
Starting Debug File System...
Starting POSIX Message Queue File System...
Starting Security File System...
Starting Huge Pages File System...
Starting udev Coldplug all Devices...
Starting udev Kernel Device Manager...
Starting Syslog Kernel Log Buffer Bridge...
Started Syslog Kernel Log Buffer Bridge.
[    9.410090] udevd[410]: starting version 173
Started udev Kernel Device Manager.
Started Collect Read-Ahead Data.
Started Load legacy module configuration.
Started File System Check on Root Device.
Starting Remount API VFS...
Starting Remount Root FS...
Started Set Up Additional Binary Formats.
Started Load Kernel Modules.
Started FUSE Control File System.
Started Configuration File System.
Starting Apply Kernel Variables...
Starting Setup Virtual Console...
Starting STDOUT Syslog Bridge...
Started STDOUT Syslog Bridge.
Started udev Coldplug all Devices.
Started Remount API VFS.
Started Apply Kernel Variables.
Starting udev Wait for Complete Device Initialization...
Started Security File System.
Started POSIX Message Queue File System.
Started Debug File System.
Started Huge Pages File System.
[    9.798875] EXT4-fs (dm-1): re-mounted. Opts: (null)
Started Media Directory.
Started Remount Root FS.
Starting Configure read-only root support...
Started Configure read-only root support.
Started Setup Virtual Console.
Starting /dev/mapper/vg_f16test64hvm-lv_swap...
[   10.958370] Adding 2064380k swap on /dev/mapper/vg_f16test64hvm-lv_swap.  Priority:0 extents:1 across:2064380k 
Started /dev/mapper/vg_f16test64hvm-lv_swap.
[   11.009608] piix4_smbus 0000:00:01.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
[   11.038011] parport_pc 00:0b: reported by Plug and Play ACPI
[   11.047803] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[   11.094629] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[   11.125422] 8139cp 0000:00:03.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
[   11.160994] 8139cp 0000:00:03.0: eth0: RTL-8139C+ at 0xffffc9000019e000, 00:16:3f:03:01:14, IRQ 28
[   11.186450] ppdev: user-space parallel port driver
Starting File System Check on /dev/disk/by-uuid/6d0e406a-ac9c-443d-a84c-34d0cc56d2a2...\r[   11.279756] 8139too: 8139too Fast Ethernet driver 0.9.28

Started udev Wait for Complete Device Initialization.[   11.449395] rmmod[598]: ERROR: Module scsi_wait_scan does not exist in /proc/modules

Started Show Plymouth Boot Screen.
Starting Wait for storage scan...
Started Wait for storage scan.
Starting Initialize storage subsystems (RAID, LVM, etc.)...
systemd-fsck[   11.727436] systemd-fsck[591]: /dev/sda2: recovering journal
[591]: /dev/sda2: recovering journal
systemd-fsck[591]: /dev/sda2: clean, 219/128016 files, 48307/512000 blocks[   11.841965] systemd-fsck[591]: /dev/sda2: clean, 219/128016 files, 48307/512000 blocks

Started File System Check on /dev/disk/by-uuid/6d0e406a-ac9c-443d-a84c-34d0cc56d2a2.
Starting /boot...
[   12.185717] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
Started /boot.
[   12.462997] fedora-storage-init[604]: Setting up Logical Volume Management:   2 logical volume(s) in volume group "vg_f16test64hvm" now active
Started Initialize storage subsystems (RAID, LVM, etc.).
Starting Initialize storage subsystems (RAID, LVM, etc.)...
[   12.528806] fedora-storage-init[604]: [  OK  ]
[   12.639613] fedora-storage-init[618]: Setting up Logical Volume Management:   2 logical volume(s) in volume group "vg_f16test64hvm" now active
Started Initialize storage subsystems (RAID, LVM, etc.).
Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
[   12.787931] fedora-storage-init[618]: [  OK  ]
[   12.857150] lvm[624]: 2 logical volume(s) in volume group "vg_f16test64hvm" monitored
Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
Started Mark the need to relabel after reboot.
Started Relabel all filesystems, if necessary.
Started Reconfigure the system on administrator request.
Starting Load Random Seed...
Starting Tell Plymouth To Write Out Runtime Data...
Starting Recreate Volatile Files and Directories...
Started Load Random Seed.
[   13.065835] systemd-tmpfiles[629]: Successfully loaded SELinux database in 36ms 529us, size on heap is 476K.
Started Tell Plymouth To Write Out Runtime Data.
Started Recreate Volatile Files and Directories.
Starting LSB: Mount and unmount network filesystems....
Starting IPv4 firewall with iptables...
Starting IPv6 firewall with ip6tables...
Starting Security Auditing Service...
Starting SSH server keys generation....\r[   13.419101] auditd[635]: Started dispatcher: /sbin/audispd pid: 645

Starting Sendmail Mail Transport Agent...
Starting System Logging Service...
Starting Login Service...
Started /etc/rc.local Compatibility.
Starting Wait for Plymouth Boot Screen to Quit...
Starting Terminate Plymouth Boot Screen...
Starting D-Bus System Message Bus...
Stopping Syslog Kernel Log Buffer Bridge...
[   14.410603] nf_conntrack version 0.5.0 (7964 buckets, 31856 max)
[   14.418528] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   28.998481] 8139cp 0000:00:03.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
[  149.712071] ------------[ cut here ]------------
[  149.717216] WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0xf0/0x150()
[  149.724709] Hardware name: HVM domU
[  149.728738] NETDEV WATCHDOG: eth0 (8139cp): transmit queue 0 timed out
[  149.735537] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
[  149.768028] Pid: 0, comm: swapper Not tainted 3.1.0-5.fc16.x86_64 #1
[  149.774639] Call Trace:
[  149.777765]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
[  149.784024]  [<ffffffff81057b11>] warn_slowpath_fmt+0x46/0x48
[  149.790141]  [<ffffffff813ef49d>] ? netif_tx_lock+0x4a/0x7c
[  149.799007]  [<ffffffff813ef613>] dev_watchdog+0xf0/0x150
[  149.806361]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
[  149.814392]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.821650]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
[  149.828926]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
[  149.836803]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.843422]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
[  149.850067]  [<ffffffff81010b45>] do_softirq+0x46/0x81
[  149.856760]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
[  149.863035]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
[  149.871144]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
[  149.879494]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
[  149.888220]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
[  149.894962]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
[  149.901461]  [<ffffffff814934ee>] rest_init+0x72/0x74
[  149.908949]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
[  149.916617]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
[  149.929148]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
[  149.936797]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
[  149.944336] ---[ end trace d8786cb7d6a57f8a ]---
[  149.950406] 8139cp 0000:00:03.0: eth0: Transmit timeout, status  d   3b   15 80ff
[  149.961879] ------------[ cut here ]------------
[  149.962245] WARNING: at kernel/softirq.c:159 _local_bh_enable_ip+0x44/0x8e()
[  149.962245] Hardware name: HVM domU
[  149.962245] Modules linked in: ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 ip6table_filter xt_state ip6_tables nf_conntrack 8139too 8139cp ppdev parport_pc mii parport i2c_piix4 i2c_core joydev [last unloaded: scsi_wait_scan]
[  149.962245] Pid: 0, comm: swapper Tainted: G        W   3.1.0-5.fc16.x86_64 #1
[  149.962245] Call Trace:
[  149.962245]  <IRQ>  [<ffffffff81057a56>] warn_slowpath_common+0x83/0x9b
[  149.962245]  [<ffffffff813ce599>] ? skb_release_data+0xca/0xcf
[  149.962245]  [<ffffffff81057a88>] warn_slowpath_null+0x1a/0x1c
[  149.962245]  [<ffffffff8105d462>] _local_bh_enable_ip+0x44/0x8e
[  149.962245]  [<ffffffff8105d4ba>] local_bh_enable_ip+0xe/0x10
[  149.962245]  [<ffffffff814b5db4>] _raw_spin_unlock_bh+0x15/0x17
[  149.962245]  [<ffffffffa0053969>] destroy_conntrack+0x9d/0xdc [nf_conntrack]
[  149.962245]  [<ffffffff813fa343>] nf_conntrack_destroy+0x19/0x1b
[  149.962245]  [<ffffffff813ce7ad>] skb_release_head_state+0xa7/0xef
[  149.962245]  [<ffffffff813ce5b1>] __kfree_skb+0x13/0x83
[  149.962245]  [<ffffffff813ce677>] consume_skb+0x56/0x6b
[  149.962245]  [<ffffffffa003c1b9>] cp_clean_rings+0xb4/0x114 [8139cp]
[  149.962245]  [<ffffffffa003c371>] cp_tx_timeout+0x88/0x10e [8139cp]
[  149.962245]  [<ffffffff813ef627>] dev_watchdog+0x104/0x150
[  149.962245]  [<ffffffff81064b51>] run_timer_softirq+0x19b/0x280
[  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.962245]  [<ffffffff813ef523>] ? netif_tx_unlock+0x54/0x54
[  149.962245]  [<ffffffff8105d6b3>] __do_softirq+0xc9/0x1b5
[  149.962245]  [<ffffffff81014fec>] ? sched_clock+0x9/0xd
[  149.962245]  [<ffffffff814be5ec>] call_softirq+0x1c/0x30
[  149.962245]  [<ffffffff81010b45>] do_softirq+0x46/0x81
[  149.962245]  [<ffffffff8105d97b>] irq_exit+0x57/0xb1
[  149.962245]  [<ffffffff812a39d3>] xen_evtchn_do_upcall+0x31/0x3e
[  149.962245]  [<ffffffff814be76e>] xen_hvm_callback_vector+0x6e/0x80
[  149.962245]  <EOI>  [<ffffffff8102f2f1>] ? native_safe_halt+0xb/0xd
[  149.962245]  [<ffffffff81015b7e>] default_idle+0x4e/0x86
[  149.962245]  [<ffffffff8100e2ed>] cpu_idle+0xae/0xe8
[  149.962245]  [<ffffffff814934ee>] rest_init+0x72/0x74
[  149.962245]  [<ffffffff81b76b7d>] start_kernel+0x3ab/0x3b6
[  149.962245]  [<ffffffff81b762c4>] x86_64_start_reservations+0xaf/0xb3
[  149.962245]  [<ffffffff81b76140>] ? early_idt_handlers+0x140/0x140
[  149.962245]  [<ffffffff81b763ca>] x86_64_start_kernel+0x102/0x111
[  149.962245] ---[ end trace d8786cb7d6a57f8b ]---

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply

* Re: [PATCH] echo: fix octal escaping with \1...\7
From: Harald van Dijk @ 2011-10-31 18:48 UTC (permalink / raw)
  To: dash
In-Reply-To: <201110311439.38413.vapier@gentoo.org>

On Mon, 2011-10-31 at 14:39 -0400, Mike Frysinger wrote:
> i plan on digging through the relevant packages and posting patches where 
> applicable.  i might be wrong about the libtool side, but do know of at least 
> one ax m4 file using it (which is what started this rat hole in the first 
> place).  but i consider that a parallel issue :).

That one m4 file was ax_prefix_config_h.m4, for which I submitted a
patch upstream and which got accepted over a year ago:
<http://savannah.gnu.org/patch/index.php?7317>.

Cheers,
Harald


^ permalink raw reply

* [Qemu-devel] [PATCH v3 3/4] Add cap reduction support to enable use as SUID
From: Corey Bryant @ 2011-10-31 18:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, rmarwah
In-Reply-To: <1320086191-23641-1-git-send-email-coreyb@linux.vnet.ibm.com>

The ideal way to use qemu-bridge-helper is to give it an fscap of using:

 setcap cap_net_admin=ep qemu-bridge-helper

Unfortunately, most distros still do not have a mechanism to package files
with fscaps applied.  This means they'll have to SUID the qemu-bridge-helper
binary.

To improve security, use libcap to reduce our capability set to just
cap_net_admin, then reduce privileges down to the calling user.  This is
hopefully close to equivalent to fscap support from a security perspective.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Richa Marwaha <rmarwah@linux.vnet.ibm.com>
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
---
 configure            |   34 ++++++++++++++++++++++++++++++++++
 qemu-bridge-helper.c |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 94c89a7..4e49b4b 100755
--- a/configure
+++ b/configure
@@ -128,6 +128,7 @@ vnc_thread="no"
 xen=""
 xen_ctrl_version=""
 linux_aio=""
+cap=""
 attr=""
 xfs=""
 
@@ -654,6 +655,10 @@ for opt do
   ;;
   --enable-kvm) kvm="yes"
   ;;
+  --disable-cap)  cap="no"
+  ;;
+  --enable-cap) cap="yes"
+  ;;
   --disable-spice) spice="no"
   ;;
   --enable-spice) spice="yes"
@@ -1037,6 +1042,8 @@ echo "  --disable-vde            disable support for vde network"
 echo "  --enable-vde             enable support for vde network"
 echo "  --disable-linux-aio      disable Linux AIO support"
 echo "  --enable-linux-aio       enable Linux AIO support"
+echo "  --disable-cap            disable libcap-ng support"
+echo "  --enable-cap             enable libcap-ng support"
 echo "  --disable-attr           disables attr and xattr support"
 echo "  --enable-attr            enable attr and xattr support"
 echo "  --disable-blobs          disable installing provided firmware blobs"
@@ -1645,6 +1652,29 @@ EOF
 fi
 
 ##########################################
+# libcap-ng library probe
+if test "$cap" != "no" ; then
+  cap_libs="-lcap-ng"
+  cat > $TMPC << EOF
+#include <cap-ng.h>
+int main(void)
+{
+    capng_capability_to_name(CAPNG_EFFECTIVE);
+    return 0;
+}
+EOF
+  if compile_prog "" "$cap_libs" ; then
+    cap=yes
+    libs_tools="$cap_libs $libs_tools"
+  else
+    if test "$cap" = "yes" ; then
+      feature_not_found "cap"
+    fi
+    cap=no
+  fi
+fi
+
+##########################################
 # Sound support libraries probe
 
 audio_drv_probe()
@@ -2761,6 +2791,7 @@ echo "fdatasync         $fdatasync"
 echo "madvise           $madvise"
 echo "posix_madvise     $posix_madvise"
 echo "uuid support      $uuid"
+echo "libcap-ng support $cap"
 echo "vhost-net support $vhost_net"
 echo "Trace backend     $trace_backend"
 echo "Trace output file $trace_file-<pid>"
@@ -2873,6 +2904,9 @@ fi
 if test "$vde" = "yes" ; then
   echo "CONFIG_VDE=y" >> $config_host_mak
 fi
+if test "$cap" = "yes" ; then
+  echo "CONFIG_LIBCAP=y" >> $config_host_mak
+fi
 for card in $audio_card_list; do
     def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`
     echo "$def=y" >> $config_host_mak
diff --git a/qemu-bridge-helper.c b/qemu-bridge-helper.c
index 4deead7..a318aa2 100644
--- a/qemu-bridge-helper.c
+++ b/qemu-bridge-helper.c
@@ -36,6 +36,10 @@
 
 #include "net/tap-linux.h"
 
+#ifdef CONFIG_LIBCAP
+#include <cap-ng.h>
+#endif
+
 #define DEFAULT_ACL_FILE CONFIG_QEMU_CONFDIR "/bridge.conf"
 
 enum {
@@ -189,6 +193,27 @@ static int send_fd(int c, int fd)
     return sendmsg(c, &msg, 0);
 }
 
+#ifdef CONFIG_LIBCAP
+static int drop_privileges(void)
+{
+    /* clear all capabilities */
+    capng_clear(CAPNG_SELECT_BOTH);
+
+    if (capng_update(CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED,
+                     CAP_NET_ADMIN) < 0) {
+        return -1;
+    }
+
+    /* change to calling user's real uid and gid, retaining supplemental
+     * groups and CAP_NET_ADMIN */
+    if (capng_change_id(getuid(), getgid(), CAPNG_CLEAR_BOUNDING)) {
+        return -1;
+    }
+
+    return 0;
+}
+#endif
+
 int main(int argc, char **argv)
 {
     struct ifreq ifr;
@@ -203,6 +228,17 @@ int main(int argc, char **argv)
     int access_allowed, access_denied;
     int ret = 0;
 
+#ifdef CONFIG_LIBCAP
+    /* if we're run from an suid binary, immediately drop privileges preserving
+     * cap_net_admin */
+    if (geteuid() == 0 && getuid() != geteuid()) {
+        if (drop_privileges() == -1) {
+            fprintf(stderr, "failed to drop privileges\n");
+            return 1;
+        }
+    }
+#endif
+
     /* parse arguments */
     if (argc < 3 || argc > 4) {
         fprintf(stderr, "Usage: %s [--use-vnet] BRIDGE FD\n", argv[0]);
-- 
1.7.3.4

^ permalink raw reply related

* Re: [meta-oe] task-basic: include wireless-tools for distros featuring wifi
From: Andreas Müller @ 2011-10-31 18:45 UTC (permalink / raw)
  To: openembedded-devel
In-Reply-To: <201110311217.28604.schnitzeltony@gmx.de>

On Monday, October 31, 2011 12:17:28 PM Andreas Müller wrote:
> On Monday, October 31, 2011 12:10:28 PM Andreas Müller wrote:
> > On Monday, October 31, 2011 11:42:40 AM Koen Kooi wrote:
> > > Op 30-10-11 11:01, Andreas Müller schreef:
> > > > Signed-off-by: Andreas Müller <schnitzeltony@gmx.de> ---
> > > > meta-oe/recipes-core/tasks/task-basic.bb |    2 +- 1 files changed, 1
> > > > insertions(+), 1 deletions(-)
> > > > 
> > > > diff --git a/meta-oe/recipes-core/tasks/task-basic.bb
> > > > b/meta-oe/recipes-core/tasks/task-basic.bb index 34aa7e1..9b9385e
> > > > 100644 --- a/meta-oe/recipes-core/tasks/task-basic.bb +++
> > > > b/meta-oe/recipes-core/tasks/task-basic.bb @@ -51,7 +51,7 @@
> > > > RRECOMMENDS_${PN} = "\ ${@base_contains("MACHINE_FEATURES",
> > > > "usbgadget", "kernel-module-g-ether kernel-module-g-serial
> > > > kernel-module-g-mass-storage", "", d)} \ \
> > > > ${@base_contains("DISTRO_FEATURES", "bluetooth", "bluez4", "", d)} \
> > > > - ${@base_contains("DISTRO_FEATURES", "wifi", "iw wpa-supplicant",
> > > > "", d)} \ +	${@base_contains("DISTRO_FEATURES", "wifi", "iw
> > > > wireless-tools wpa-supplicant", "", d)} \
> > > 
> > > I have to NAK this one, 'iw' has replaced wireless in the
> > > linux-wireless world and having both doesn't make sense.
> > 
> > I had the feeling (am not 100% sure), that adding wireless-tools to image
> > made my wlan work under networkmanger control - will do some tests on
> > that.
> > 
> > FYI: networkmanager has wireless-tools in DEPENDS but that is not enough
> > to make wireless-tools into the image.
> > 
> > How about wireless-tools in RDEPENDS for networkmanager?
> 
> I took a look at networkmanager configure.ac:
> | AC_MSG_ERROR(wireless-tools or libiw development headers >= 28pre9 not
> 
> installed or not functional)
> 
> I seems better to have iw in dependencies there instead of wireless-tools.
> Will give that one a try.
> 
For maiden image wlan works without change / wireless-tools. Sorry for the 
noise.

Andreas



^ permalink raw reply

* [PATCH] exit 255 documentation.
From: yajosev-Re5JQEeQqe8AvxtiuMwx3w @ 2011-10-31 18:45 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: dsd-2X9k7bc8m7Mdnm+yROfE0A, yajosev-Re5JQEeQqe8AvxtiuMwx3w

From: Yader Vel√°squez <yajosev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Add documentation about the exit 255 in check script that
indicates that the modules should only be included when
explicitly requested by the configuration.
---
 README.modules |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.modules b/README.modules
index 21461de..932db29 100644
--- a/README.modules
+++ b/README.modules
@@ -43,8 +43,9 @@ check():
 
        When called without options, check should check to make sure that
        any files it needs to install into the initrd from the host system
-       are present.  It should exit with a 0 if they are, and a 1 if they are
-       not.
+       are present. It should exit with a 0 if they are, a 1 if they are
+       not, and a 255 if the module should only be included when explicitly
+       requested by the configuration or command line options.
 
        When called with $hostonly set, it should perform the same check
        that it would without it set, and it should also check to see if the
-- 
1.7.6.4

^ permalink raw reply related

* Re: [GIT PULL] mm: frontswap (for 3.2 window)
From: Andrea Arcangeli @ 2011-10-31 18:44 UTC (permalink / raw)
  To: John Stoffel
  Cc: Dan Magenheimer, Johannes Weiner, Pekka Enberg, Cyclonus J,
	Sasha Levin, Christoph Hellwig, David Rientjes, Linus Torvalds,
	linux-mm, LKML, Andrew Morton, Konrad Wilk, Jeremy Fitzhardinge,
	Seth Jennings, ngupta, Chris Mason, JBeulich, Dave Hansen,
	Jonathan Corbet
In-Reply-To: <20138.62532.493295.522948@quad.stoffel.home>

On Fri, Oct 28, 2011 at 02:28:20PM -0400, John Stoffel wrote:
> and service.  How would TM benefit me?  I don't use Xen, don't want to
> play with it honestly because I'm busy enough as it is, and I just
> don't see the hard benefits.

If you used Xen tmem would be more or less the equivalent of
cache=writethrough/writeback. For us tmem is the linux host pagecache
running on the baremetal in short. But at least when we vmexit for a
read we read 128-512k of it (depending on if=virtio or others and
guest kernel readahead decision), not just a fixed absolutely worst
case 4k unit like tmem would do...

Without tmem Xen can only work like KVM cache=off.

If at least it would drop us a copy, but no, it still does the bounce
buffer, so I'd rather bounce in the host kernel function
file_read_actor than in some superflous (as far as KVM is concerned)
tmem code, plus we normally read orders of magnitude more than 4k in
each vmexit, so our default cache=writeback/writethroguh may already
be more efficient than if we'd use tmem for that.

We could only consider for swap compression but for swap compression
I've no idea why we still need to do a copy, instead of just
compressing from userland page in zerocopy (worst case using any
mechanism introduced to provide stable pages).

And when host linux pagecache will go hugepage we'll get a >4k copy in
one go while tmem bounce will still be stuck at 4k...

^ permalink raw reply


This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.