[qubes-users] Re: How to cache these disk reads done by the likes of [14.xvda-0]

2018-09-06 Thread Marcus Linsner
On Wednesday, September 5, 2018 at 4:26:11 AM UTC+2, Marcus Linsner wrote:
> Regarding OP, maybe I should look into this: 
> https://www.kernel.org/doc/Documentation/filesystems/caching/fscache.txt
> I'm unsure if it'll work for what I want, yet.
> 
> On Tuesday, August 28, 2018 at 10:35:23 PM UTC+2, Marcus Linsner wrote:
> > Side question: how can I send eg. sysrq+m to a qube? (seems not possible 
> > according to this 2016 post https://phabricator.whonix.org/T553#10438 ? )
> 
> Looks like it's possible, from dom0:
> 
> $ xl sysrq
> 'xl sysrq' requires at least 2 arguments.
> 
> Usage: xl [-vf] sysrq  
> 
> Send a sysrq to a domain.
> 
> 
> Or, maybe not:
> [   61.904917] xen:manage: sysrq_handler: Error -13 writing sysrq in 
> control/sysrq
> 
> I tried on a disposable VM, 's' and 'h'.
> $ sysctl kernel.sysrq
> already reports =1
> 
> On first glance I found the code responsible here: 
> https://lists.xenproject.org/archives/html/xen-devel/2018-06/msg01068.html
> if (sysrq_key != '\0') {
>   err = xenbus_printf(xbt, "control", "sysrq", "%c", '\0');
> ...
> I'm not sure if that looks right, I mean why isn't sysrq_key written instead 
> of just a '\0' ? perhaps I'm misreading this. I'm not a programmer :D

Ah sweet! There's a fix: 
https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=30a970906038a4d360e1f7ee29ba80ef832dd78b;hp=6de6c8d306c091eb7381575d250beaf2eeaf02df

I can't wait to test it whenever I figure out how to :D (possibly using 
qubes-builder to compile xen, ...)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20fa50d4-69ce-4ea0-9e56-6e100c744826%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: How to cache these disk reads done by the likes of [14.xvda-0]

2018-09-04 Thread Marcus Linsner
Regarding OP, maybe I should look into this: 
https://www.kernel.org/doc/Documentation/filesystems/caching/fscache.txt
I'm unsure if it'll work for what I want, yet.

On Tuesday, August 28, 2018 at 10:35:23 PM UTC+2, Marcus Linsner wrote:
> Side question: how can I send eg. sysrq+m to a qube? (seems not possible 
> according to this 2016 post https://phabricator.whonix.org/T553#10438 ? )

Looks like it's possible, from dom0:

$ xl sysrq
'xl sysrq' requires at least 2 arguments.

Usage: xl [-vf] sysrq  

Send a sysrq to a domain.


Or, maybe not:
[   61.904917] xen:manage: sysrq_handler: Error -13 writing sysrq in 
control/sysrq

I tried on a disposable VM, 's' and 'h'.
$ sysctl kernel.sysrq
already reports =1

On first glance I found the code responsible here: 
https://lists.xenproject.org/archives/html/xen-devel/2018-06/msg01068.html
if (sysrq_key != '\0') {
  err = xenbus_printf(xbt, "control", "sysrq", "%c", '\0');
...
I'm not sure if that looks right, I mean why isn't sysrq_key written instead of 
just a '\0' ? perhaps I'm misreading this. I'm not a programmer :D



-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/6ed2a879-4ee1-42bc-914b-213eec9ac48a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.