Skip to contentSkip to conversation

systemd: drop dependency on proc-xen.mount in xendriverdomain.service

PATCH In review Marek Marczykowski-Górecki 3 participants 7 messages Jul 24, 2016 – Jul 25, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1469388272-22789-1-git-send-email-marmarek@invisiblethingslab.com

#1 lore raw

PATCH 2/2 systemd: drop dependency on proc-xen.mount in xendriverdomain.service

It is no longer required since xl devd use /dev/xen interface.

---
 tools/hotplug/Linux/systemd/xendriverdomain.service.in | 2 --
 1 file changed, 2 deletions(-)
tools/hotplug/Linux/systemd/xendriverdomain.service.in +0 -2
index 0afb54d..a100309 100644
@@ -1,7 +1,5 @@
 [Unit]
 Description=Xen driver domain device daemon
-Requires=proc-xen.mount
-After=proc-xen.mount
 ConditionVirtualization=xen
 
 [Service]
Signature · 1 line
2.5.5

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

#2 lore raw
Quoted 2 lines · Marek Marczykowski-Górecki

It is no longer required since xl devd use /dev/xen interface.

How would this unit work when there is no /dev/xen interface?

To be precise, we prefer /dev/xen interfaces whenever possible but there is a fallback to /proc/xen. Note that a lot of other unit files have this dependency on proc-xen.mount.

I'm inclined to say we should keep this dependency but I'm not sure if I missed some obvious things.

Quoted 21 lines
---
 tools/hotplug/Linux/systemd/xendriverdomain.service.in | 2 --
 1 file changed, 2 deletions(-)
tools/hotplug/Linux/systemd/xendriverdomain.service.in +0 -2
index 0afb54d..a100309 100644
@@ -1,7 +1,5 @@
 [Unit]
 Description=Xen driver domain device daemon
-Requires=proc-xen.mount
-After=proc-xen.mount
 ConditionVirtualization=xen
 
 [Service]
Signature · 1 line
2.5.5

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

#3 lore raw
Quoted 5 lines · Wei Liu
Quoted 2 lines · Marek Marczykowski-Górecki

It is no longer required since xl devd use /dev/xen interface.

How would this unit work when there is no /dev/xen interface?

Does it happen in reality? I thought /proc/xen is deprecated for a long time...

Quoted 30 lines

To be precise, we prefer /dev/xen interfaces whenever possible but there is a fallback to /proc/xen. Note that a lot of other unit files have this dependency on proc-xen.mount.

I'm inclined to say we should keep this dependency but I'm not sure if I missed some obvious things.

Quoted 21 lines
---
 tools/hotplug/Linux/systemd/xendriverdomain.service.in | 2 --
 1 file changed, 2 deletions(-)
tools/hotplug/Linux/systemd/xendriverdomain.service.in +0 -2
index 0afb54d..a100309 100644
@@ -1,7 +1,5 @@
 [Unit]
 Description=Xen driver domain device daemon
-Requires=proc-xen.mount
-After=proc-xen.mount
 ConditionVirtualization=xen
 
 [Service]
Signature · 1 line
2.5.5
Signature · 5 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

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

#4 lore raw
Quoted 10 lines · Marek Marczykowski-Górecki
Quoted 5 lines · Wei Liu
Quoted 2 lines · Marek Marczykowski-Górecki

It is no longer required since xl devd use /dev/xen interface.

How would this unit work when there is no /dev/xen interface?

Does it happen in reality? I thought /proc/xen is deprecated for a long time...

I can't tell whether it happens in reality or not. I also hope to get rid of deprecated interface but they are here to stay for as long as it takes.

I guess the question is, do you have a compelling reason against keeping this dependency?

Wei.

Quoted 25 lines
Quoted 25 lines

To be precise, we prefer /dev/xen interfaces whenever possible but there is a fallback to /proc/xen. Note that a lot of other unit files have this dependency on proc-xen.mount.

I'm inclined to say we should keep this dependency but I'm not sure if I missed some obvious things.

Quoted 18 lines
---
 tools/hotplug/Linux/systemd/xendriverdomain.service.in | 2 --
 1 file changed, 2 deletions(-)
tools/hotplug/Linux/systemd/xendriverdomain.service.in +0 -2
index 0afb54d..a100309 100644
@@ -1,7 +1,5 @@
 [Unit]
 Description=Xen driver domain device daemon
-Requires=proc-xen.mount
-After=proc-xen.mount
 ConditionVirtualization=xen
 
Quoted 12 lines
Quoted 5 lines
Quoted 3 lines
tools/hotplug/Linux/systemd/xendriverdomain.service.in +0 -0
 [Service]
Signature · 1 line
2.5.5
Signature · 5 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

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

#5 lore raw
Quoted 12 lines · Wei Liu
Quoted 10 lines · Marek Marczykowski-Górecki
Quoted 5 lines · Wei Liu
Quoted 2 lines · Marek Marczykowski-Górecki

It is no longer required since xl devd use /dev/xen interface.

How would this unit work when there is no /dev/xen interface?

Does it happen in reality? I thought /proc/xen is deprecated for a long time...

Quoted 6 lines

I can't tell whether it happens in reality or not. I also hope to get rid of deprecated interface but they are here to stay for as long as it takes.

I guess the question is, do you have a compelling reason against keeping this dependency?

Just cleaning up old stuff, so - no.

Signature · 5 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

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

#6 lore raw
In reply to Wei Liu
Quoted 8 lines · Wei Liu
Quoted 7 lines · Marek Marczykowski-Górecki
Quoted 4 lines · Wei Liu
Quoted 2 lines · Marek Marczykowski-Górecki

It is no longer required since xl devd use /dev/xen interface.

How would this unit work when there is no /dev/xen interface?

Does it happen in reality? I thought /proc/xen is deprecated for a long time...

It really should be, but isn't.

/proc/xen/capabilities and /proc/xen/allsyms (?) don't have any equivalent in /dev/

Quoted 7 lines
Quoted 1 line

I can't tell whether it happens in reality or not. I also hope to get rid of deprecated interface but they are here to stay for as long as it takes.

I guess the question is, do you have a compelling reason against keeping this dependency?

We really should be making xenfs deprecated and able to be compiled out of Linux. It is a hangover of the early classic kernels which isn't necessary, and causes subtle/weird failures if it isn't mounted.

~Andrew

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

#7 lore raw
Quoted 20 lines · Andrew Cooper
Quoted 8 lines · Wei Liu
Quoted 7 lines · Marek Marczykowski-Górecki
Quoted 4 lines · Wei Liu
Quoted 2 lines · Marek Marczykowski-Górecki

It is no longer required since xl devd use /dev/xen interface.

How would this unit work when there is no /dev/xen interface?

Does it happen in reality? I thought /proc/xen is deprecated for a long time...

It really should be, but isn't.

/proc/xen/capabilities and /proc/xen/allsyms (?) don't have any equivalent in /dev/

Quoted 5 lines
Quoted 1 line

I can't tell whether it happens in reality or not. I also hope to get rid of deprecated interface but they are here to stay for as long as it takes.

Quoted 7 lines
Quoted 2 lines

I guess the question is, do you have a compelling reason against keeping this dependency?

We really should be making xenfs deprecated and able to be compiled out of Linux. It is a hangover of the early classic kernels which isn't necessary, and causes subtle/weird failures if it isn't mounted.

+1 from me of course!

When the kernel is ready, I shall remove the fallback in libraries and then we can remove all references to proc-xen.mount and even proc-xen.mount itself.

Wei.

Quoted 1 line

~Andrew

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