Skip to contentSkip to conversation

pause PV domain with pci passthrough

DISCUSSION Sander Eikelenboom 2 participants 7 messages Nov 30, 2010

lore
Share & tools
lore
#0 lore raw

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ? If not, should it work with a HVM with pci passthrough ?

Trying with a PV domain gave troubles so far.

--
Sander

#1 lore raw
Quoted 7 lines · Sander Eikelenboom

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ?
If not, should it work with a HVM with pci passthrough ?

Trying with a PV domain gave troubles so far.

It might give problems with pending pass-thru interrupts not getting handled by the paused domain? That could block other, more critical interrupts, like for disc controllers in dom0. Just a theory. I wouldn't generally recommend pausing any domain, as a guest OS could get upset getting descheduled for significant periods of time without being told about it (as a PV guest is for save/restore).

-- Keir

Quoted 3 lines

--
Sander

#2 lore raw
Quoted 8 lines · you
Quoted 6 lines · Sander Eikelenboom

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ?
If not, should it work with a HVM with pci passthrough ?

Quoted 8 lines
Quoted 1 line

Trying with a PV domain gave troubles so far.

It might give problems with pending pass-thru interrupts not getting handled by the paused domain? That could block other, more critical interrupts, like for disc controllers in dom0. Just a theory. I wouldn't generally recommend pausing any domain, as a guest OS could get upset getting descheduled for significant periods of time without being told about it (as a PV guest is for save/restore).

That's exactly what i saw, dom0's ahci controller was getting pretty upset. So save/restore would be the way to go then ..
I will give that a try !

Thx,

Sander

Quoted 5 lines

-- Keir

Quoted 3 lines

--
Sander

Signature · 2 lines
Best regards,
 Sander                            mailto:[email protected]
#3 lore raw
In reply to Keir Fraser

Hmm save isn't allowed with a pci device passed through:

#xm save 14 /tmp/savedomain.xen
Error: Migration not permitted with assigned PCI device.

Would perhaps be wise to do that for pause as well when a pci device is assigned ?

--
Sander

Quoted 22 lines · you
Quoted 7 lines · Sander Eikelenboom

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ?
If not, should it work with a HVM with pci passthrough ?

Trying with a PV domain gave troubles so far.

It might give problems with pending pass-thru interrupts not getting handled by the paused domain? That could block other, more critical interrupts, like for disc controllers in dom0. Just a theory. I wouldn't generally recommend pausing any domain, as a guest OS could get upset getting descheduled for significant periods of time without being told about it (as a PV guest is for save/restore).

-- Keir

Quoted 3 lines

--
Sander

Signature · 2 lines
Best regards,
 Sander                            mailto:[email protected]
#4 lore raw
Quoted 7 lines · Sander Eikelenboom

Hmm save isn't allowed with a pci device passed through:

#xm save 14 /tmp/savedomain.xen
Error: Migration not permitted with assigned PCI device.

Would perhaps be wise to do that for pause as well when a pci device is assigned ?

Yes, probably. Why do you want to pause a domain, anyway? Is it actually useful to be able to do that?

-- Keir

Quoted 32 lines

--
Sander

Quoted 22 lines · you
Quoted 7 lines · Sander Eikelenboom

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ?
If not, should it work with a HVM with pci passthrough ?

Trying with a PV domain gave troubles so far.

It might give problems with pending pass-thru interrupts not getting handled by the paused domain? That could block other, more critical interrupts, like for disc controllers in dom0. Just a theory. I wouldn't generally recommend pausing any domain, as a guest OS could get upset getting descheduled for significant periods of time without being told about it (as a PV guest is for save/restore).

-- Keir

Quoted 3 lines

--
Sander

#5 lore raw

The idea was that pausing it would make it possible to switch between running and not running faster than with complete create/shutdown. But it's not terribly important, just wondering if it was possible (already thought that the pci stuff would probably be difficult)

--
Sander

Quoted 47 lines · you
Quoted 7 lines · Sander Eikelenboom

Hmm save isn't allowed with a pci device passed through:

#xm save 14 /tmp/savedomain.xen
Error: Migration not permitted with assigned PCI device.

Would perhaps be wise to do that for pause as well when a pci device is assigned ?

Yes, probably. Why do you want to pause a domain, anyway? Is it actually useful to be able to do that?

-- Keir

Quoted 32 lines

--
Sander

Quoted 22 lines · you
Quoted 7 lines · Sander Eikelenboom

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ?
If not, should it work with a HVM with pci passthrough ?

Trying with a PV domain gave troubles so far.

It might give problems with pending pass-thru interrupts not getting handled by the paused domain? That could block other, more critical interrupts, like for disc controllers in dom0. Just a theory. I wouldn't generally recommend pausing any domain, as a guest OS could get upset getting descheduled for significant periods of time without being told about it (as a PV guest is for save/restore).

-- Keir

Quoted 3 lines

--
Sander

Signature · 2 lines
Best regards,
 Sander                            mailto:[email protected]
#6 lore raw
Quoted 4 lines · Sander Eikelenboom

The idea was that pausing it would make it possible to switch between running and not running faster than with complete create/shutdown.
But it's not terribly important, just wondering if it was possible (already thought that the pci stuff would probably be difficult)

You could try pci detach/attach across 'xm pause'?

-- Keir

Quoted 58 lines

--
Sander

Quoted 49 lines · you
Quoted 7 lines · Sander Eikelenboom

Hmm save isn't allowed with a pci device passed through:

#xm save 14 /tmp/savedomain.xen
Error: Migration not permitted with assigned PCI device.

Would perhaps be wise to do that for pause as well when a pci device is assigned ?

Yes, probably. Why do you want to pause a domain, anyway? Is it actually useful to be able to do that?

-- Keir

Quoted 34 lines

--
Sander

Quoted 24 lines · you
Quoted 7 lines · Sander Eikelenboom

Hi Keir/Konrad,

Should it be possible to pause a PV domain ("xm pause") when it has pci devices passed through ?
If not, should it work with a HVM with pci passthrough ?

Trying with a PV domain gave troubles so far.

It might give problems with pending pass-thru interrupts not getting handled
by the paused domain? That could block other, more critical interrupts, like
for disc controllers in dom0. Just a theory. I wouldn't generally recommend pausing any domain, as a guest OS could get upset getting descheduled for significant periods of time without being told about it (as a PV guest is for save/restore).

-- Keir

Quoted 3 lines

--
Sander