>From 1906d77900afdfdd1720a6d743ce69487904a6a0 Mon Sep 17 00:00:00 2001
From: Vadim Rozenfeld <[email protected]>
Date: Mon, 16 May 2011 14:05:58 +0300
Subject: [COMMIT] [vioserial] Fix ports numbering problem.
---
vioserial/sys/Device.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/vioserial/sys/Device.c b/vioserial/sys/Device.c
index 3b856eb..cd262fd 100644
--- a/vioserial/sys/Device.c
+++ b/vioserial/sys/Device.c
@@ -365,7 +365,10 @@ VIOSerialInitAllQueues(
TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "<--> %s\n",
__FUNCTION__);
nr_ports = pContext->consoleConfig.max_nr_ports;
-
+ if(pContext->isHostMultiport)
+ {
+ nr_ports++;
+ }
for(i = 0, j = 0; i < nr_ports; i++)
{
in_vq = VirtIODeviceFindVirtualQueue(&pContext->IODevice, i *
2, NULL);
@@ -421,7 +424,7 @@ VIOSerialShutDownAllQueues(
}
}
- nr_ports = pContext->consoleConfig.max_nr_ports - 1;
+ nr_ports = pContext->consoleConfig.max_nr_ports;
for(i = 0; i < nr_ports; i++ )
{
if(pContext->in_vqs && pContext->in_vqs[i])
--
1.7.0.2.msysgit.0
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html