Skip to contentSkip to conversation

PV drivers for HVM guests

PATCH New Tomonari Horikoshi 1 participant 1 message Mar 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PV drivers for HVM guests

Hi all.

The HVM guest did not respond when PV-on-HVM driver was tested on the following conditions.

1. RHEL4u4
2. vcpu 4
3. irqbalance on
4. pv-on-hvm driver used.

Eventhandler did not work because IRQ was delivered to another vcpu by irqbalance.

This patch solves it by setting evtchn only in vcpu0.

Best regards,
Horikoshi

# HG changeset patch
# User [email protected]
# Date 1174264984 -32400
# Node ID d565329db78214ef06fb0c94416d74366f3ea10c # Parent f40bd358129a8f83e4503bc7129c1e6598563c8c evtchn is pinned in vcpu0

unmodified_drivers/linux-2.6/platform-pci/evtchn.c +5 -0
diff -r f40bd358129a -r d565329db782 unmodified_drivers/linux-2.6/platform-pci/evtchn.c
@@ -42,6 +42,11 @@ void *shared_info_area;
 void *shared_info_area;
 
 #define MAX_EVTCHN 256
+
+/* evtchn is pinned in vcpu0. smp_processor_id() = 0 */
+#undef smp_processor_id
+#define smp_processor_id()	0
+
 static struct {
 	irqreturn_t(*handler) (int, void *, struct pt_regs *);
 	void *dev_id;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel