[PATCH 1/1] Staging: hv: util: kvp: Fix the reported OSVersion string

2011-07-22 Thread K. Y. Srinivasan
The current win7 host does not like it when we return the
complete kernel release information. Conform to what the host
expects.

Signed-off-by: K. Y. Srinivasan 
Signed-off-by: Haiyang Zhang 
---
 drivers/staging/hv/tools/hv_kvp_daemon.c |9 +
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/hv/tools/hv_kvp_daemon.c 
b/drivers/staging/hv/tools/hv_kvp_daemon.c
index c230bae..6f3e5c2 100644
--- a/drivers/staging/hv/tools/hv_kvp_daemon.c
+++ b/drivers/staging/hv/tools/hv_kvp_daemon.c
@@ -119,6 +119,15 @@ void kvp_get_os_info(void)
os_build = uts_buf.release;
processor_arch = uts_buf.machine;
 
+   /*
+* The current windows host (win7) expects the build
+* string to be of the form: x.y.z
+* Strip additional information we may have.
+*/
+   p = strchr(os_build, '-');
+   if (p)
+   *p = '\0';
+
file = fopen("/etc/SuSE-release", "r");
if (file != NULL)
goto kvp_osinfo_found;
-- 
1.7.4.1

___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization


[PATCH] staging: hv: fix some typos in netvsc.c

2011-07-22 Thread Haiyang Zhang
Reported-by: Joe Perches 
Signed-off-by: Haiyang Zhang 
Signed-off-by: K. Y. Srinivasan 
---
 drivers/staging/hv/netvsc.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c
index 2b33e13..23328aa 100644
--- a/drivers/staging/hv/netvsc.c
+++ b/drivers/staging/hv/netvsc.c
@@ -249,7 +249,7 @@ static int netvsc_init_recv_buf(struct hv_device *device)
if (init_packet->msg.v1_msg.
send_recv_buf_complete.status != NVSP_STAT_SUCCESS) {
netdev_err(ndev, "Unable to complete receive buffer "
-  "initialzation with NetVsp - status %d\n",
+  "initialization with NetVsp - status %d\n",
   init_packet->msg.v1_msg.
   send_recv_buf_complete.status);
ret = -EINVAL;
@@ -746,7 +746,7 @@ static void netvsc_receive(struct hv_device *device,
xferpage_packet->count = count - 1;
 
if (xferpage_packet->count != vmxferpage_packet->range_cnt) {
-   netdev_err(ndev, "Needed %d netvsc pkts to satisy "
+   netdev_err(ndev, "Needed %d netvsc pkts to satisfy "
"this xfer page...got %d\n",
vmxferpage_packet->range_cnt, xferpage_packet->count);
}
-- 
1.6.3.2

___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization


Re: [PATCH] drivers/virt: add missing linux/interrupt.h to fsl_hypervisor.c

2011-07-22 Thread Kumar Gala

On Jul 19, 2011, at 3:45 PM, Timur Tabi wrote:

> fsl_hypervisor.c calls request_irq() but does not include linux/interrupt.h.
> Normally, the driver will compile without error, but it can fail on some
> configurations.
> 
> Signed-off-by: Timur Tabi 
> ---
> drivers/virt/fsl_hypervisor.c |1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)

applied to next

- k
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization


RE: [PATCH 2/9] staging: hv: add newline to log messages in netvsc

2011-07-22 Thread Haiyang Zhang
> -Original Message-
> From: Joe Perches [mailto:j...@perches.com]
> Sent: Thursday, July 21, 2011 9:36 PM
> Just noticing some trivial typos...
> 
> > diff --git a/drivers/staging/hv/netvsc.c
> b/drivers/staging/hv/netvsc.c
> []
> > @@ -246,7 +246,7 @@ static int netvsc_init_recv_buf(struct hv_device
> *device)
> > if (init_packet->msg.v1_msg.
> > send_recv_buf_complete.status != NVSP_STAT_SUCCESS) {
> > dev_err(&device->device, "Unable to complete receive buffer
> "
> > -  "initialzation with NetVsp - status %d",
> > +  "initialzation with NetVsp - status %d\n",
> 
> initialization
> 
> []
> > @@ -738,7 +738,7 @@ static void netvsc_receive(struct hv_device
> *device,
> >
> > if (xferpage_packet->count != vmxferpage_packet->range_cnt) {
> > dev_err(&device->device, "Needed %d netvsc pkts to satisy "
> > -   "this xfer page...got %d",
> > +   "this xfer page...got %d\n",
> 
> satisfy

Good catch! I will make a new patch to correct them.

Thanks,
- Haiyang

___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/virtualization