Skip to contentSkip to conversation

Hypervisor error messages after xl block-detach with linux 3.18-rc5

DISCUSSION Juergen Gross 4 participants 14 messages Nov 21, 2014 – Nov 25, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Worked without any problem. After some seconds the following messages were issued on the console:

(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61110 (pfn 1f3f21c) (XEN) mm.c:2995:d0 Error while pinning mfn 61110
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61110 (pfn 1f3f21c) (XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61111 (pfn 1f3f21d) (XEN) mm.c:2995:d0 Error while pinning mfn 61111
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61111 (pfn 1f3f21d) (XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61120 (pfn 1f3f22c) (XEN) mm.c:2995:d0 Error while pinning mfn 61120
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61120 (pfn 1f3f22c) (XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61121 (pfn 1f3f22d) (XEN) mm.c:2995:d0 Error while pinning mfn 61121
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61121 (pfn 1f3f22d) (XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61102 (pfn 1f3f20e) (XEN) mm.c:2995:d0 Error while pinning mfn 61102
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61102 (pfn 1f3f20e) (XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61103 (pfn 1f3f20f) (XEN) mm.c:2995:d0 Error while pinning mfn 61103
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61103 (pfn 1f3f20f) (XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms

Is this a known issue?

Juergen

#1 lore raw
Quoted 54 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Worked without any problem. After some seconds the following messages were issued on the console:

(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61110 (pfn 1f3f21c)
(XEN) mm.c:2995:d0 Error while pinning mfn 61110
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61110 (pfn 1f3f21c)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61111 (pfn 1f3f21d)
(XEN) mm.c:2995:d0 Error while pinning mfn 61111
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61111 (pfn 1f3f21d)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61120 (pfn 1f3f22c)
(XEN) mm.c:2995:d0 Error while pinning mfn 61120
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61120 (pfn 1f3f22c)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61121 (pfn 1f3f22d)
(XEN) mm.c:2995:d0 Error while pinning mfn 61121
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61121 (pfn 1f3f22d)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61102 (pfn 1f3f20e)
(XEN) mm.c:2995:d0 Error while pinning mfn 61102
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61102 (pfn 1f3f20e)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61103 (pfn 1f3f20f)
(XEN) mm.c:2995:d0 Error while pinning mfn 61103
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61103 (pfn 1f3f20f)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms

Quoted 1 line

Is this a known issue?

No. First time I see it.

Quoted 8 lines

Juergen

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

#2 lore raw
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 5 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

Quoted 8 lines
Quoted 8 lines

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Did some more testing:
- Seems to occur only when attaching a block device to dom0, problem shows up only after doing the block-detach.
- Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are spinning in _raw_spin_lock():
__handle_mm_fault()->__pte_alloc()->pmd_lock()->_raw_spin_lock() The hanging cpus were executing some random user processes (cron, bash, xargs), cr2 contained user addresses.
- Up to now I've seen the problem on a rather huge machine only (128GB, 120 cpus). I just did a quick test on my laptop and nothing bad happened.
- Even on the huge machine just doing block-attach and block-detach without mounting the filesystem on the disk was harmless.

Any ideas how to find the problem?

Juergen

Quoted 58 lines
Quoted 41 lines

Worked without any problem. After some seconds the following messages were issued on the console:

(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61110 (pfn 1f3f21c)
(XEN) mm.c:2995:d0 Error while pinning mfn 61110
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61110 (pfn 1f3f21c)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61111 (pfn 1f3f21d)
(XEN) mm.c:2995:d0 Error while pinning mfn 61111
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61111 (pfn 1f3f21d)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61120 (pfn 1f3f22c)
(XEN) mm.c:2995:d0 Error while pinning mfn 61120
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61120 (pfn 1f3f22c)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61121 (pfn 1f3f22d)
(XEN) mm.c:2995:d0 Error while pinning mfn 61121
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61121 (pfn 1f3f22d)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61102 (pfn 1f3f20e)
(XEN) mm.c:2995:d0 Error while pinning mfn 61102
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61102 (pfn 1f3f20e)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms (XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61103 (pfn 1f3f20f)
(XEN) mm.c:2995:d0 Error while pinning mfn 61103
(XEN) mm.c:2352:d0 Bad type (saw 7400000000000002 != exp 1000000000000000) for mfn 61103 (pfn 1f3f20f)
(XEN) mm.c:906:d0 Attempt to create linear p.t. with write perms

Quoted 1 line

Is this a known issue?

No. First time I see it.

Quoted 8 lines

Juergen

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

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

#3 lore raw
Quoted 10 lines · Juergen Gross
Quoted 9 lines · Konrad Rzeszutek Wilk
Quoted 8 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Did some more testing:
- Seems to occur only when attaching a block device to dom0

That means a qdisk backed situation then, I think.

Is your qemu up to date?

http://xenbits.xen.org/gitweb/?p=qemu-upstream-unstable.git;a=commit;h=abbbc2f09a53f8f9ee565356ab11a78af006e45e resulted in slightly different messages, but could be related?

Ian.

#8 lore raw
In reply to Juergen Gross
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 24.11.14 at 10:55, <[email protected]> wrote:

- Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are spinning in _raw_spin_lock():
__handle_mm_fault()->__pte_alloc()->pmd_lock()->_raw_spin_lock() The hanging cpus were executing some random user processes (cron, bash, xargs), cr2 contained user addresses.

Is this perhaps what
http://lists.xenproject.org/archives/html/xen-devel/2014-11/msg02135.html
appears to be about?

Jan

#10 lore raw
In reply to a message not in the archive
Quoted 11 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 24.11.14 at 10:55, <[email protected]> wrote:

- Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are spinning in _raw_spin_lock():
__handle_mm_fault()->__pte_alloc()->pmd_lock()->_raw_spin_lock() The hanging cpus were executing some random user processes (cron, bash, xargs), cr2 contained user addresses.

Is this perhaps what
http://lists.xenproject.org/archives/html/xen-devel/2014-11/msg02135.html
appears to be about?

Hmm, I'm not sure.

I'll try a 3.17 kernel to verify.

Juergen

#11 lore raw
Quoted 10 lines · Juergen Gross
Quoted 9 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 24.11.14 at 10:55, <[email protected]> wrote:

- Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are
spinning
in _raw_spin_lock():
__handle_mm_fault()->__pte_alloc()->pmd_lock()->_raw_spin_lock() The hanging cpus were executing some random user processes (cron, bash, xargs), cr2 contained user addresses.

Quoted 7 lines
Quoted 3 lines

Is this perhaps what
http://lists.xenproject.org/archives/html/xen-devel/2014-11/msg02135.html
appears to be about?

Hmm, I'm not sure.

I'll try a 3.17 kernel to verify.

Still seeing the issue, but less frequent. OTOH I just found in above thread in lkml that 3.17 is showing that issue, too. :-(

I'll try to setup a pv-variant of Linus' patch and test it...

Juergen

#12 lore raw
Quoted 16 lines · Juergen Gross
Quoted 15 lines · Juergen Gross
Quoted 13 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 24.11.14 at 10:55, <[email protected]> wrote:

- Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are
spinning
in _raw_spin_lock():
__handle_mm_fault()->__pte_alloc()->pmd_lock()->_raw_spin_lock() The hanging cpus were executing some random user processes (cron, bash, xargs), cr2 contained user addresses.

Is this perhaps what
http://lists.xenproject.org/archives/html/xen-devel/2014-11/msg02135.html

appears to be about?

Quoted 8 lines
Quoted 3 lines

Hmm, I'm not sure.

I'll try a 3.17 kernel to verify.

Still seeing the issue, but less frequent. OTOH I just found in above thread in lkml that 3.17 is showing that issue, too. :-(

I'll try to setup a pv-variant of Linus' patch and test it...

First test seems to be okay, no immediate NMI message...

Any idea why the block-attach/detach would trigger this problem so easily? I can see the dependency on the high cpu count, but fail to do so for the xl actions.

Juergen

#14 lore raw
In reply to Juergen Gross
Quoted 16 lines · Juergen Gross
Quoted 15 lines · Juergen Gross
Quoted 13 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 24.11.14 at 10:55, <[email protected]> wrote:

- Sometimes I see only NMI watchdog messages, looking into hanging cpu state via xen debug keys I can see the cpu(s) in question are
spinning
in _raw_spin_lock():
__handle_mm_fault()->__pte_alloc()->pmd_lock()->_raw_spin_lock() The hanging cpus were executing some random user processes (cron, bash, xargs), cr2 contained user addresses.

Is this perhaps what
http://lists.xenproject.org/archives/html/xen-devel/2014-11/msg02135.html

appears to be about?

Quoted 8 lines
Quoted 3 lines

Hmm, I'm not sure.

I'll try a 3.17 kernel to verify.

Still seeing the issue, but less frequent. OTOH I just found in above thread in lkml that 3.17 is showing that issue, too. :-(

I'll try to setup a pv-variant of Linus' patch and test it...

Okay, test survived the night. Seems really to be the same issue.

I think I'm seeing the qemu issue now Ian mentioned:

[  140.182849] xen:grant_table: WARNING: g.e. 0x10 still in use!
[  140.182859] deferring g.e. 0x10 (pfn 0xffffffffffffffff)
[  140.182864] xen:grant_table: WARNING: g.e. 0xf still in use!
[  140.182866] deferring g.e. 0xf (pfn 0xffffffffffffffff)
...
[  140.183128] xen:grant_table: WARNING: g.e. 0x2a still in use!
[  140.183129] deferring g.e. 0x2a (pfn 0xffffffffffffffff)
[  142.182274] xen:grant_table: freeing g.e. 0x9
[  145.182284] xen:grant_table: freeing g.e. 0x44
[  147.182272] xen:grant_table: freeing g.e. 0x43
[  501.182282] xen:grant_table: g.e. 0x10 still pending
[  501.182315] xen:grant_table: g.e. 0xf still pending

...

I'll update qemu and try again...

Juergen

#13 lore raw
In reply to Juergen Gross
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 24.11.14 at 18:27, <[email protected]> wrote:
Quoted 3 lines · Juergen Gross

Still seeing the issue, but less frequent. OTOH I just found in above thread in lkml that 3.17 is showing that issue, too. :-(

Quoted 7 lines
Quoted 1 line

I'll try to setup a pv-variant of Linus' patch and test it...

First test seems to be okay, no immediate NMI message...

Any idea why the block-attach/detach would trigger this problem so easily? I can see the dependency on the high cpu count, but fail to do so for the xl actions.

No, no idea. It was only the similar symptoms that made me consider this a possibility.

Jan

#4 lore raw
In reply to Ian Campbell
Quoted 17 lines · Ian Campbell
Quoted 16 lines · Juergen Gross
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Quoted 8 lines
Quoted 2 lines

Did some more testing:
- Seems to occur only when attaching a block device to dom0

That means a qdisk backed situation then, I think.

Is your qemu up to date?

http://xenbits.xen.org/gitweb/?p=qemu-upstream-unstable.git;a=commit;h=abbbc2f09a53f8f9ee565356ab11a78af006e45e resulted in slightly different messages, but could be related?

Tried it with xen-unstable and newest qemu. Now I have another problem:

xl -vvv block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w
libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0: create: how=(nil) callback=(nil) poller=0xbac1d0
libxl: error: libxl.c:1897:device_addrm_aocomplete: unable to add device
libxl: debug: libxl_event.c:1739:libxl__ao_complete: ao 0xbac0f0: complete, rc=-16
libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0: inprogress: poller=0xbac1d0, flags=ic
libxl: debug: libxl_event.c:1711:libxl__ao__destroy: ao 0xbac0f0: destroy libxl_device_disk_add failed.

rc=-16 means ERROR_JSON_CONFIG_EMPTY. Could it be that newest tools won't let me attach a block device to dom0?

IMHO that's a severe regression!

Juergen

#5 lore raw
Quoted 41 lines · Juergen Gross
Quoted 17 lines · Ian Campbell
Quoted 16 lines · Juergen Gross
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Quoted 8 lines
Quoted 2 lines

Did some more testing:
- Seems to occur only when attaching a block device to dom0

That means a qdisk backed situation then, I think.

Is your qemu up to date?

http://xenbits.xen.org/gitweb/?p=qemu-upstream-unstable.git;a=commit;h=abbbc2f09a53f8f9ee565356ab11a78af006e45e resulted in slightly different messages, but could be related?

Tried it with xen-unstable and newest qemu. Now I have another problem:

xl -vvv block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w
libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0: create:
how=(nil) callback=(nil) poller=0xbac1d0
libxl: error: libxl.c:1897:device_addrm_aocomplete: unable to add device
libxl: debug: libxl_event.c:1739:libxl__ao_complete: ao 0xbac0f0:
complete, rc=-16
libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0:
inprogress: poller=0xbac1d0, flags=ic
libxl: debug: libxl_event.c:1711:libxl__ao__destroy: ao 0xbac0f0: destroy libxl_device_disk_add failed.

Quoted 1 line

rc=-16 means ERROR_JSON_CONFIG_EMPTY.

Have you updated your initscripts to run the xen-init-dom0 helper? This replaced the manual xenstore-write stuff a little while back and added some other init, including creating the necessary json description of dom0.

Ian.

#6 lore raw
Quoted 42 lines · Ian Campbell
Quoted 41 lines · Juergen Gross
Quoted 17 lines · Ian Campbell
Quoted 16 lines · Juergen Gross
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Quoted 8 lines
Quoted 2 lines

Did some more testing:
- Seems to occur only when attaching a block device to dom0

That means a qdisk backed situation then, I think.

Is your qemu up to date?

http://xenbits.xen.org/gitweb/?p=qemu-upstream-unstable.git;a=commit;h=abbbc2f09a53f8f9ee565356ab11a78af006e45e resulted in slightly different messages, but could be related?

Tried it with xen-unstable and newest qemu. Now I have another problem:

xl -vvv block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w
libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0: create:
how=(nil) callback=(nil) poller=0xbac1d0
libxl: error: libxl.c:1897:device_addrm_aocomplete: unable to add device
libxl: debug: libxl_event.c:1739:libxl__ao_complete: ao 0xbac0f0:
complete, rc=-16
libxl: debug: libxl.c:4178:libxl_device_disk_add: ao 0xbac0f0:
inprogress: poller=0xbac1d0, flags=ic
libxl: debug: libxl_event.c:1711:libxl__ao__destroy: ao 0xbac0f0: destroy libxl_device_disk_add failed.

Quoted 6 lines
Quoted 1 line

rc=-16 means ERROR_JSON_CONFIG_EMPTY.

Have you updated your initscripts to run the xen-init-dom0 helper? This replaced the manual xenstore-write stuff a little while back and added some other init, including creating the necessary json description of dom0.

Bingo! Now it works.

Thanks,

Juergen

#7 lore raw
In reply to Ian Campbell
Quoted 17 lines · Ian Campbell
Quoted 16 lines · Juergen Gross
Quoted 14 lines · Konrad Rzeszutek Wilk
Quoted 13 lines · Juergen Gross

Hi,

while testing my "linear p2m list" patches I saw the following problem (even without my patches in place):

In dom0 running linux 3.18-rc5 on top of Xen 4.4.1 I modified the disk image of a guest by attaching it to dom0:

xl block-attach 0 file:/var/lib/libvirt/images/opensuse13-1/xvda,xvda,w mount /dev/xvda2 /mnt
...
umount /mnt
xl block-detach 0 xvda

Quoted 8 lines
Quoted 2 lines

Did some more testing:
- Seems to occur only when attaching a block device to dom0

That means a qdisk backed situation then, I think.

Is your qemu up to date?

http://xenbits.xen.org/gitweb/?p=qemu-upstream-unstable.git;a=commit;h=abbbc2f09a53f8f9ee565356ab11a78af006e45e resulted in slightly different messages, but could be related?

Newest qemu and xen-unstable together with my dom0 kernel patch made all issues go away at a first glance.

Juergen