xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* xl pci-detach vs xm pci-detach in Xen 4.3 (one works, the other does not)
@ 2013-06-07 15:45 Konrad Rzeszutek Wilk
  2013-06-10 11:12 ` George Dunlap
  0 siblings, 1 reply; 32+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-06-07 15:45 UTC (permalink / raw)
  To: xen-devel, jbeulich, george.dunlap

Something is odd. If I do the pci-detach in Xend 
(xm pci-detach latest 0000:01:00.0) the guest tells me:

[   20.866562] pcifront pci-0: Rescanning PCI Frontend Bus 0000:00
[   20.996602] pcifront pci-0: backend going away!
[   20.996824] pci_bus 0000:00: busn_res: [bus 00-ff] is released
[   20.997089] pcifront pci-0: Disconnecting PCI Frontend Buses
[   21.006171] pcifront pci-0: 22 freeing event channel 17

and I want to attach it back (xm pci-attach latest 0000:01:00.0):

# [   78.823076] pcifront pci-0: Installing PCI frontend
[   78.823332] pcifront pci-0: Creating PCI Frontend Bus 0000:00
[   78.823674] pcifront pci-0: PCI host bridge to bus 0000:00
[   78.823686] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[   78.823697] pci_bus 0000:00: root bus resource [mem 0x00000000-0xfffffffff]
[   78.823703] pci_bus 0000:00: root bus resource [bus 00-ff]
[   78.823911] pci 0000:00:00.0: [8086:105e] type 00 class 0x020000
[   78.824234] pci 0000:00:00.0: reg 10: [mem 0xfe4a0000-0xfe4bffff]
[   78.824378] pci 0000:00:00.0: reg 14: [mem 0xfe480000-0xfe49ffff]
[   78.824489] pci 0000:00:00.0: reg 18: [io  0xe020-0xe03f]
[   78.827837] pcifront pci-0: claiming resource 0000:00:00.0/0
[   78.827845] pcifront pci-0: claiming resource 0000:00:00.0/1
[   78.827850] pcifront pci-0: claiming resource 0000:00:00.0/2
[   78.831779] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
[   78.831790] e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
[   78.831842] e1000e 0000:00:00.0: Disabling ASPM  L1
[   78.831937] e1000e 0000:00:00.0: enabling device (0000 -> 0002)
[   78.834698] xen_map_pirq_gsi: returning irq 34 for gsi 16
[   78.834707] e1000e 0000:00:00.0: Xen PCI mapped GSI16 to IRQ34
[   78.835330] e1000e 0000:00:00.0: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[   79.002430] e1000e 0000:00:00.0 eth0: (PCI Express:2.5GT/s:Width x4) 00:15:17:8f:18:a2
[   79.002441] e1000e 0000:00:00.0 eth0: Intel(R) PRO/1000 Network Connection
[   79.002521] e1000e 0000:00:00.0 eth0: MAC: 0, PHY: 4, PBA No: D50868-003
[   79.310912] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   79.313442] device eth0 entered promiscuous mode
[   82.230982] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[   82.231133] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   82.231225] switch: port 1(eth0) entered forwarding state
[   82.231242] switch: port 1(eth0) entered forwarding state

Doing this with xl I get:

15:42:23 # 57 :~/
> xl -f pci-detach latest 0000:01:00.0
libxl: error: libxl_pci.c:1231:do_pci_remove: xc_physdev_unmap_pirq irq=82
libxl: error: libxl_pci.c:1235:do_pci_remove: xc_domain_irq_permission irq=82


and in the guest:
# kill -1 1
# [   28.516427] switch: port 1(eth0) entered disabled state
[   28.516590] device eth0 left promiscuous mode
[   28.516599] switch: port 1(eth0) entered disabled state
[   28.547664] pcifront pci-0: Rescanning PCI Frontend Bus 0000:00
[   28.654770] pci_bus 0000:00: busn_res: [bus 00-ff] is released
[   28.654982] pcifront pci-0: 22 freeing event channel 17
[   28.655228] pcifront pci-0: failed to write error node for device/pci/0 (22 freeing event channel 17)


but this with Xen 4.3 that has at its tip:

commit 365c95f7de789e1dca03f119eab7dc61fe0f77c9
Author: Jan Beulich <jbeulich@suse.com>
Date:   Tue Jun 4 09:29:07 2013 +0200

    x86/xsave: properly check guest input to XSETBV

any thoughts? I don't know if this is a regression or not, but the
libxl errors are pointing me to the recent XSA issue - which I thought
was fixed?

Guest config:
extra="console=hvc0 debug "
kernel="/mnt/lab/latest/vmlinuz"
ramdisk="/mnt/lab/latest/initramfs.cpio.gz"
memory=1024
vcpus=2
name="latest"
on_crash="preserve"
vnc=1
vnclisten="0.0.0.0"
pci=["01:00.0"]
e820_host=1
disk=['phy:/dev/sdb2,xvda,w']

^ permalink raw reply	[flat|nested] 32+ messages in thread
* (unknown), 
@ 2012-10-20  1:17 Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 32+ messages in thread
From: Konrad Rzeszutek Wilk @ 2012-10-20  1:17 UTC (permalink / raw)
  To: linux-kernel, xen-devel, mukesh.rathor, Ian.Campbell,
	stefano.stabellini

Mukesh provided me with the git of his with some of the changes to his
patches and as well the modifications done per review. I've done a bit
of changes in the git description to flesh them out some more.

Sending them out and I've also stuck the redone patches in my tree:
 git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/pvh.v4

Please review. I think the only changes are just in the git commit
descriptions - so please pull our your wordsmith hat and lupe!

 arch/x86/include/asm/xen/interface.h |   11 ++-
 arch/x86/include/asm/xen/page.h      |    3 +
 arch/x86/xen/Kconfig                 |   10 ++
 arch/x86/xen/enlighten.c             |   77 ++++++++++++----
 arch/x86/xen/irq.c                   |    5 +-
 arch/x86/xen/mmu.c                   |  162 ++++++++++++++++++++++++++++++++--
 arch/x86/xen/mmu.h                   |    2 +
 arch/x86/xen/p2m.c                   |    2 +-
 arch/x86/xen/setup.c                 |   64 +++++++++++---
 arch/x86/xen/smp.c                   |   75 ++++++++++------
 arch/x86/xen/xen-head.S              |   11 ++-
 drivers/xen/balloon.c                |   15 ++--
 drivers/xen/cpu_hotplug.c            |    4 +-
 drivers/xen/events.c                 |    9 ++-
 drivers/xen/gntdev.c                 |    3 +-
 drivers/xen/grant-table.c            |   26 +++++-
 drivers/xen/privcmd.c                |   72 ++++++++++++++-
 drivers/xen/xenbus/xenbus_client.c   |    3 +-
 include/xen/interface/memory.h       |   24 +++++-
 include/xen/interface/physdev.h      |   10 ++
 include/xen/xen-ops.h                |    5 +-
 21 files changed, 507 insertions(+), 86 deletions(-)

^ permalink raw reply	[flat|nested] 32+ messages in thread
* (unknown), 
@ 2010-02-02  8:19 Sheng Yang
  0 siblings, 0 replies; 32+ messages in thread
From: Sheng Yang @ 2010-02-02  8:19 UTC (permalink / raw)
  To: Jeremy Fitzhardinge, Keir Fraser; +Cc: xen-devel, linux-kernel

Hi, Jeremy & Keir

Here is the second version of patchset to enable Xen Hybrid extension support
in Linux kernel.

The Hybrid Extension is started from real mode like HVM guest, but also with a
a range of PV features(e.g. PV halt, PV timer, event channel, as well as PV
drivers). So guest with Hybrid extension feature can takes the advantages of
both H/W virtualization and Para-Virtualization.

The first two of the patchset imported several header file from Jeremy's tree
and Xen tree, respect to Jeremy and Keir's works.

The whole patchset based on Linux upstream.

Current the patchset support x86_64 only.

The major change from v1:
1. SMP support.
2. Modify the entrance point to avoid most of genernic kernel modification.
3. Binding PV timer with event channel mechanism.

You need a line like:

cpuid = [ '0x40000002:edx=0x3' ]

in HVM configuration file to expose hybrid feature to guest, and

CONFIG_XEN

in the guest kernel configuration file to enable the hybrid support.

And the compiled image can be used as native/pv domU/hvm guest/hybrid kernel.

Comments are welcome!

BTW: For the MSI/MSI-X support, pv_ops dom0 can share the solution with hybrid.
We would try to figure out a elegant way to deal with it later.

--
regards
Yang, Sheng

--
 arch/x86/include/asm/xen/cpuid.h     |   73 +++++++++++++
 arch/x86/include/asm/xen/hypercall.h |    6 +
 arch/x86/kernel/setup.c              |    8 ++
 arch/x86/xen/enlighten.c             |  192 ++++++++++++++++++++++++++++++++++
 arch/x86/xen/irq.c                   |   54 ++++++++++
 arch/x86/xen/smp.c                   |  144 +++++++++++++++++++++++++-
 arch/x86/xen/xen-head.S              |    6 +
 arch/x86/xen/xen-ops.h               |    4 +
 drivers/block/xen-blkfront.c         |    3 +
 drivers/input/xen-kbdfront.c         |    4 +
 drivers/net/xen-netfront.c           |    3 +
 drivers/video/xen-fbfront.c          |    4 +
 drivers/xen/events.c                 |   66 +++++++++++-
 drivers/xen/grant-table.c            |   67 ++++++++++++-
 drivers/xen/xenbus/xenbus_probe.c    |   23 ++++-
 include/xen/events.h                 |    1 +
 include/xen/hvm.h                    |   28 +++++
 include/xen/interface/hvm/hvm_op.h   |   79 ++++++++++++++
 include/xen/interface/hvm/params.h   |  111 ++++++++++++++++++++
 include/xen/interface/xen.h          |    6 +-
 include/xen/xen.h                    |   12 ++
 21 files changed, 883 insertions(+), 11 deletions(-)

^ permalink raw reply	[flat|nested] 32+ messages in thread
* (unknown), 
@ 2005-05-12 12:22 Tobias.Melcher
  0 siblings, 0 replies; 32+ messages in thread
From: Tobias.Melcher @ 2005-05-12 12:22 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 192 bytes --]

Hi,
 
I would like to read the contents of a domain's memory, specially the memory occupied by the domain's kernel.
How can this be done?
I would appreciate any help.
 
Thanks,
Tobias

[-- Attachment #1.2: Type: text/html, Size: 1444 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2013-11-04 21:15 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 15:45 xl pci-detach vs xm pci-detach in Xen 4.3 (one works, the other does not) Konrad Rzeszutek Wilk
2013-06-10 11:12 ` George Dunlap
2013-06-10 11:15   ` Processed: " xen
2013-06-10 13:20   ` Konrad Rzeszutek Wilk
2013-06-10 13:28     ` George Dunlap
2013-06-10 13:30       ` Processed: " xen
2013-06-10 20:24       ` Konrad Rzeszutek Wilk
2013-06-10 20:30         ` Processed: " xen
     [not found]           ` <20131104202224.GA18449@phenom.dumpdata.com>
2013-11-04 20:30             ` Processed: " xen
2013-11-04 20:39               ` Wei Liu
2013-11-04 20:45                 ` Processed: " xen
2013-06-10 21:06         ` (unknown), Konrad Rzeszutek Wilk
2013-06-10 21:06           ` [PATCH] xen/pci: Deal with toolstack missing an 'XenbusStateClosing' Konrad Rzeszutek Wilk
2013-06-11  7:29             ` Jan Beulich
     [not found]             ` <51B6EDDF02000078000DCFB7@nat28.tlf.novell.com>
2013-06-11  9:00               ` George Dunlap
     [not found]               ` <51B6E711.2000001@eu.citrix.com>
2013-06-11 13:03                 ` konrad wilk
2013-06-11 15:36             ` George Dunlap
2013-06-11 16:08               ` konrad wilk
2013-06-11 16:17                 ` George Dunlap
2013-06-11 16:24                   ` konrad wilk
2013-06-12 13:45                   ` Konrad Rzeszutek Wilk
2013-06-12 13:47                     ` George Dunlap
2013-06-12 14:27                       ` Konrad Rzeszutek Wilk
2013-06-12 17:28                     ` Bjorn Helgaas
2013-06-14 16:28                       ` Konrad Rzeszutek Wilk
2013-11-04 20:43                       ` Konrad Rzeszutek Wilk
2013-11-04 20:56                         ` Ben Guthro
     [not found]                           ` <20131104205917.GA18696@phenom.dumpdata.com>
2013-11-04 21:15                             ` Processed: " xen
2013-06-10 13:30     ` Processed: Re: xl pci-detach vs xm pci-detach in Xen 4.3 (one works, the other does not) xen
  -- strict thread matches above, loose matches on Subject: below --
2012-10-20  1:17 (unknown), Konrad Rzeszutek Wilk
2010-02-02  8:19 (unknown), Sheng Yang
2005-05-12 12:22 (unknown), Tobias.Melcher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).