[PATCH 4/11] arch/x86/kvm: Correct NULL test

2010-02-06 Thread Julia Lawall
From: Julia Lawall ju...@diku.dk msr was tested above, so the second test is not needed. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when

Re: How to edit *.qcow2

2010-02-06 Thread Liang Guo
在 星期五 05 二月 2010 14:54:57,sati...@pacific.net.hk 写道: Hi Liang, Thanks for your advice and link. Host - Debian 5.0 KVM libvirt run kvm-nbd VM/vm30.qcow2, modprobe nbd nbd-client localhost 1024 /dev/nbd0 then you can use /dev/nbd0 as a block device like /dev/sda I've write

[PATCH] Add assignment operation to config file parser..

2010-02-06 Thread john cooper
This patch reworks support for both assignment and append in the config file parser. It was motivated by comments received on the cpu model config file format. Commit dc9ca4ba27be4fe6a0284061b8f056c4364fb0d9 changed the behavior of = from assign to append. This patch preserves the ability to