All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] kvm tools: Remove unconditional warning in ivshmem
@ 2011-09-05 23:23 Sasha Levin
  2011-09-05 23:23 ` [PATCH 2/5] kvm tools: Fix 32bit warnings Sasha Levin
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sasha Levin @ 2011-09-05 23:23 UTC (permalink / raw)
  To: penberg; +Cc: kvm, mingo, gorcunov, asias.hejun, Sasha Levin

This patch prevents printing a warning if ivshmem device wasn't requested.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
 tools/kvm/hw/pci-shmem.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/tools/kvm/hw/pci-shmem.c b/tools/kvm/hw/pci-shmem.c
index 295f5cd..f820164 100644
--- a/tools/kvm/hw/pci-shmem.c
+++ b/tools/kvm/hw/pci-shmem.c
@@ -222,10 +222,8 @@ int pci_shmem__init(struct kvm *kvm)
 	u8 dev, line, pin;
 	char *mem;
 
-	if (shmem_region == 0) {
-		pr_warning("pci_shmem_init: memory region not registered\n");
+	if (shmem_region == 0)
 		return 0;
-	}
 
 	/* Register good old INTx */
 	if (irq__register_device(PCI_DEVICE_ID_PCI_SHMEM, &dev, &pin, &line) < 0)
-- 
1.7.6.1


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

end of thread, other threads:[~2011-09-06 13:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-05 23:23 [PATCH 1/5] kvm tools: Remove unconditional warning in ivshmem Sasha Levin
2011-09-05 23:23 ` [PATCH 2/5] kvm tools: Fix 32bit warnings Sasha Levin
2011-09-05 23:23 ` [PATCH 3/5] kvm tools: Attach default 'root=' only if required Sasha Levin
2011-09-05 23:23 ` [PATCH 4/5] kvm tools: Teach 'run' to handle guestfs Sasha Levin
2011-09-06 13:37   ` Cyrill Gorcunov
2011-09-05 23:23 ` [PATCH 5/5] kvm tools: Add guestfs network autoconfiguration Sasha Levin

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.