Skip to contentSkip to conversation

Fix evtchn interface

PATCH In review Kasai Takanori 5 participants 7 messages Jan 10, 2007 – Jan 11, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix evtchn interface

Hi All,

The interface of the evtchn has been changed as follows.

・xen-unstable.hg : cs13198
[PV-ON-HVM] Update evtchn interface to match new PV Linux interfaces.
・xen-unstable.hg : cs13197
[LINUX] Extend the event-channel interfaces to provide helper methods

However, the following errors occur if pv-on-hvm is done in insmod. This patch corrected this issue.

---

# insmod xen-vbd.ko
xen-vbd: Unknown symbol irq_to_evtchn_port
insmod: error inserting 'xen-vbd.ko': -1 Unknown symbol in module
---

Thanks,

--
Takanori Kasai

# HG changeset patch
# User [email protected]
# Date 1168393185 -32400
# Node ID d11d2e7de483ee636c6cb83a14b06b5564069658 # Parent 9865145e53eb02ddc2e2792f80bb7d54bc754a65 Fix evtchn interface

unmodified_drivers/linux-2.6/platform-pci/evtchn.c +6 -0
diff -r 9865145e53eb -r d11d2e7de483 unmodified_drivers/linux-2.6/platform-pci/evtchn.c
@@ -158,6 +158,12 @@ void notify_remote_via_irq(int irq)
 	notify_remote_via_evtchn(evtchn);
 }
 EXPORT_SYMBOL(notify_remote_via_irq);
+
+int irq_to_evtchn_port(int irq)
+{
+        return irq;
+}
+EXPORT_SYMBOL_GPL(irq_to_evtchn_port);
 
 irqreturn_t evtchn_interrupt(int irq, void *dev_id, struct pt_regs *regs)
 {

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

#1 lore raw

Hi Kasai,

After applying the patch, the unknown symbol issue is gone. However, I got another problem. After I load xen-platform-pci.ko successfully, Xen hangs up when I try to load xenbus.ko. Xen died sliently without any prompt when I did insmod xenbus.ko. I set up my HVM domain by installing a fresh RHEL 4.4 from ISO image file which is using 2.6.9-42 kernel by default. Then I downloaded a fresh 2.6.16.33 kernel to HVM domain and built that kernel. I also built VBD modules on this HVM domain and using the same kernel version headers. However, I can still not load Xenbus.ko module. The Xen version I'm using is Xen 3.0.4 and the latest Xen_unstable.

Do you know how to solve this problem?

Thanks,

Liang

----- Original Message ----- From: "Kasai Takanori" <[email protected]>
To: "xen-devel" <[email protected]>
Sent: Tuesday, January 09, 2007 7:34 PM
Subject: [Xen-devel] [PATCH] [PV-ON-HVM] Fix evtchn interface

Quoted 19 lines

Hi All,

The interface of the evtchn has been changed as follows.

・xen-unstable.hg : cs13198
[PV-ON-HVM] Update evtchn interface to match new PV Linux interfaces.
・xen-unstable.hg : cs13197
[LINUX] Extend the event-channel interfaces to provide helper methods

However, the following errors occur if pv-on-hvm is done in insmod. This patch corrected this issue.

---

# insmod xen-vbd.ko
xen-vbd: Unknown symbol irq_to_evtchn_port
insmod: error inserting 'xen-vbd.ko': -1 Unknown symbol in module
---
Quoted 4 lines

Thanks,

--
Takanori Kasai

--------------------------------------------------------------------------------

Quoted 5 lines

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

#2 lore raw
Quoted 11 lines · Liang Yang

After applying the patch, the unknown symbol issue is gone. However, I got another problem. After I load xen-platform-pci.ko successfully, Xen hangs up when I try to load xenbus.ko. Xen died sliently without any prompt when I did insmod xenbus.ko. I set up my HVM domain by installing a fresh RHEL 4.4 from ISO image file which is using 2.6.9-42 kernel by default. Then I downloaded a fresh 2.6.16.33 kernel to HVM domain and built that kernel. I also built VBD modules on this HVM domain and using the same kernel version headers. However, I can still not load Xenbus.ko module. The Xen version I'm using is Xen 3.0.4 and the latest Xen_unstable.

Do you know how to solve this problem?

We're working on this one. Should have a fix today.

-- Keir

#3 lore raw
In reply to Liang Yang
Quoted 10 lines

After applying the patch, the unknown symbol issue is gone. However, I got another problem. After I load xen-platform-pci.ko successfully, Xen hangs up when I try to load xenbus.ko. Xen died sliently without any prompt when I did insmod xenbus.ko. I set up my HVM domain by installing a fresh RHEL 4.4 from ISO image file which is using 2.6.9-42 kernel by default. Then I downloaded a fresh 2.6.16.33 kernel to HVM domain and built that kernel. I also built VBD modules on this HVM domain and using the same kernel version headers. However, I can still not load Xenbus.ko module. The Xen version I'm using is Xen 3.0.4 and the latest Xen_unstable.

This should all be fixed now by -unstable cset 13321:5c5d9692f559

cheers,

S.

#4 lore raw

VBD works now!!! Re: [PATCH] [PV-ON-HVM] Fix evtchn interface

Just tested xen-unstable cse 13321. The bug is solved!!! VBD works now!!! Great!!!

Liang

----- Original Message ----- From: "Steven Hand" <[email protected]>
To: "Liang Yang" <[email protected]>
Cc: "Kasai Takanori" <[email protected]>; "xen-devel" <[email protected]>; <[email protected]>
Sent: Wednesday, January 10, 2007 9:32 AM
Subject: Re: [Xen-devel] [PATCH] [PV-ON-HVM] Fix evtchn interface

Quoted 19 lines
Quoted 10 lines

After applying the patch, the unknown symbol issue is gone. However, I got another problem. After I load xen-platform-pci.ko successfully, Xen hangs up when I try to load xenbus.ko. Xen died sliently without any prompt when I did insmod xenbus.ko. I set up my HVM domain by installing a fresh RHEL 4.4 from ISO image file which is using 2.6.9-42 kernel by default. Then I downloaded a fresh 2.6.16.33 kernel to HVM domain and built that kernel. I also built VBD modules on this HVM domain and using the same kernel version headers. However, I can still not load Xenbus.ko module. The Xen version I'm using is Xen 3.0.4 and the latest Xen_unstable.

This should all be fixed now by -unstable cset 13321:5c5d9692f559

cheers,

S.

#5 lore raw

Does Xen force all AIO be synchronous?

Hi,

I have these questions for a while. As AIO can help improve better performance and Linux kernel keeps tunning the AIO path, more and more IOs can be expected to take AIO path instead of regular I/O path.

First Question:
If we consider Xen, do we need to do AIO both in the domain0 and guest domains at the same? For example, considering two situations, let a full virtualized guest domain still do regular I/O and domain0 (vbd back end driver) do AIO; or let both full-virtualized guest domain and domain0 do AIO. What is possible performance difference here?

Second Question:
Does Domain0 always wait till AIO data is available and then notify guest domain? or Domain0 will issue an interrupt immediately to notify guest domain0 when AIO is queued? If the first case is true, then all AIOs will become synchronous.

Third Question:
Does Xen hypervisor change the behavior of Linux I/O scheduler more or less?

Four Question:
Will AIO have different performance impact on para-virtualized domain and full-virtualized domain respectively?

Thanks,

Liang

#6 lore raw
In reply to Kasai Takanori
Quoted 4 lines · Kasai Takanori

Hi All,

The interface of the evtchn has been changed as follows.

Quoted 8 lines

・xen-unstable.hg : cs13198
[PV-ON-HVM] Update evtchn interface to match new PV Linux interfaces.
・xen-unstable.hg : cs13197
[LINUX] Extend the event-channel interfaces to provide helper methods

However, the following errors occur if pv-on-hvm is done in insmod. This patch corrected this issue.

Keir has already applied this one (13284:d3e40fd6038e) but it is stuck in the staging tree until regression testing passes.

Ian.