Re: [qubes-users] Changing USB Controllers

2018-10-15 Thread unman
On Sun, Oct 14, 2018 at 04:54:05PM -0400, Alex Winter wrote:
> The laptop I have is a MSI WT70 20K.  I have 5 USB ports total on it. Three
> USB3 ports and two USB2 ports.
> 
>  I have tryed making a sys-usb from the default settings and it crashes the
> install(probably because qubes is installed on a usb and its grabbing all
> the USB controllers).   Installing without sys-usb works without any issues.
> 
> following these instructions
> https://www.qubes-os.org/doc/assigning-devices/#finding-the-right-usb-controller
> i am seeing that all the ports I plug a USB storage device in use the same
> controller as my qubes OS (dom0) which is the XHCI controller.
> 
> 
> On Wed, Oct 10, 2018, 10:18 AM unman  wrote:
> 
> > On Mon, Oct 08, 2018 at 07:27:23PM -0700, Alex Winter wrote:
> > > Here are the usb controllers when I type in 'sudo lspci -v'
> > >
> > > 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset
> > Family USb xHCI (Rev 05) (prog-if 30 [XHCI])
> > >  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
> > >  Flags: bus master, medium devsel, latency 0, IRQ 57
> > >  Memory at f7b0 (64-bit, non-prefetchable) [size=64k]
> > >  Capabilities: [70] Power Management version 2
> > >  Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
> > >  Kernel driver in use: xhci_hcd
> > >  Kernel modules: xhci_pci
> > >
> > > 00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset
> > Family USb EHCI #2 (Rev 05) (prog-if 20 [EHCI])
> > >  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
> > >  Flags: bus master, medium devsel, latency 0, IRQ 16
> > >  Memory at f7b18000 (32-bit, non-pcopy and pasterefetchable) [size=1k]
> > >  Capabilities: [50] Power Management version 2
> > >  Capabilities: [58] Debug port: BAR=1 offset=00a0
> > >  Capabilities: [98] PCI Advanced Features
> > >  Kernel driver in use: ehci-pci
> > >  Kernel modules: ehci_pci
> > >
> > > 00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset
> > Family USb EHCI #1 (Rev 05) (prog-if 20 [EHCIReciever])
> > >  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
> > >  Flags: bus master, medium devsel, latency 0, IRQ 23
> > >  Memory at f7b17000 (32-bit, non-prefetchable) [size=1k]
> > >  Capabilities: [50] Power Management version 2
> > >  Capabilities: [58] Debug port: BAR=1 offset=00a0
> > >  Capabilities: [98] PCI Advanced Features
> > >  Kernel driver in use: ehci-pci
> > >  Kernel modules: ehci_pci
> > >
> > > when I type in 'sudo lsusb -v' Here are the buses.
> > >
> > > Bus 002 Device 002: ID 8087:8000 Intel Corp.
> > >
> > > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > iProduct 2 EHCI Host Controller
> > > iSerial  1 :00:1d.0
> > >
> > > Bus 001 Device 002: ID 8087:8008 Intel Corp.
> > >
> > > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > iproduct 2 EHCI Host Controller
> > > iSerial  1 :00:1a.0
> > >
> > > Bus 004 Device 002: ID 04e8:61f5 Samsung Electronics Co., Ltd
> > >
> > > Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> > > iProduct 2 xHCI Host Controller
> > > iSerial  1 :00:14.0
> > >
> > > Bus 003 Device 007: ID 1770:ff00
> > >
> > > Bus 003 Device 005: ID 8087:07dc Intel Corp.
> > >
> > > Bus 003 Device 004: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse
> > 6000 receiver
> > >
> > > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > > iProduct 2 xHCI Host Controller
> > > iSerial  1 :00:14.0
> > >
> >
> > Without knowing your laptop or exact setup I'm working a bit blind.
> > I think you say you have a usbVM and are running qubes from a USB stick
> > - is that right?
> > You haven't said *which* controller your ports all use.
> >
> > From the listing it's clear you have usb2 and usb3 controllers, and it
> > may be that ALL your ports are 2/3. More info needed please.
> > I'll throw out some wild suggestions:
> >
> > Hide one of the controllers on the kernel command line(say the xhci).
> > Disable ehci in usbVM, and use only USB3 devices with the usbVM.
> >
> > It might be possible to delete one of the devices in dom0, and still have
> > it available in qubes. (I mean literally rm /dev/bus/usb/001)
> >
> > You could unbind a pci device early in boot. I've done this with Xen
> > before, to have one port in dom0 and the rest available to xen-pciback,
> > but haven't tried it with Qubes.
> >
> > You could use udev to block two of the ports in dom0, so that they are
> > only available in the usbVM.
> >
> > unman
> >

Hi Alex

There's something strange here because the two ports on the right hand
side should definitely be USB2, so should not use xhci at all. If they
are all using the same controller, what's the point in shipping both?

Since you are booting from USB, you probably want to keep Qubes running
from USB3. I had thought that you could mask the USB2 controllers from
dom0, but if all your ports are using xhci as you report, that 

Re: [qubes-users] Changing USB Controllers

2018-10-14 Thread Alex Winter
The laptop I have is a MSI WT70 20K.  I have 5 USB ports total on it. Three
USB3 ports and two USB2 ports.

 I have tryed making a sys-usb from the default settings and it crashes the
install(probably because qubes is installed on a usb and its grabbing all
the USB controllers).   Installing without sys-usb works without any issues.

following these instructions
https://www.qubes-os.org/doc/assigning-devices/#finding-the-right-usb-controller
i am seeing that all the ports I plug a USB storage device in use the same
controller as my qubes OS (dom0) which is the XHCI controller.


On Wed, Oct 10, 2018, 10:18 AM unman  wrote:

> On Mon, Oct 08, 2018 at 07:27:23PM -0700, Alex Winter wrote:
> > Here are the usb controllers when I type in 'sudo lspci -v'
> >
> > 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset
> Family USb xHCI (Rev 05) (prog-if 30 [XHCI])
> >  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
> >  Flags: bus master, medium devsel, latency 0, IRQ 57
> >  Memory at f7b0 (64-bit, non-prefetchable) [size=64k]
> >  Capabilities: [70] Power Management version 2
> >  Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
> >  Kernel driver in use: xhci_hcd
> >  Kernel modules: xhci_pci
> >
> > 00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset
> Family USb EHCI #2 (Rev 05) (prog-if 20 [EHCI])
> >  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
> >  Flags: bus master, medium devsel, latency 0, IRQ 16
> >  Memory at f7b18000 (32-bit, non-pcopy and pasterefetchable) [size=1k]
> >  Capabilities: [50] Power Management version 2
> >  Capabilities: [58] Debug port: BAR=1 offset=00a0
> >  Capabilities: [98] PCI Advanced Features
> >  Kernel driver in use: ehci-pci
> >  Kernel modules: ehci_pci
> >
> > 00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset
> Family USb EHCI #1 (Rev 05) (prog-if 20 [EHCIReciever])
> >  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
> >  Flags: bus master, medium devsel, latency 0, IRQ 23
> >  Memory at f7b17000 (32-bit, non-prefetchable) [size=1k]
> >  Capabilities: [50] Power Management version 2
> >  Capabilities: [58] Debug port: BAR=1 offset=00a0
> >  Capabilities: [98] PCI Advanced Features
> >  Kernel driver in use: ehci-pci
> >  Kernel modules: ehci_pci
> >
> > when I type in 'sudo lsusb -v' Here are the buses.
> >
> > Bus 002 Device 002: ID 8087:8000 Intel Corp.
> >
> > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > iProduct 2 EHCI Host Controller
> > iSerial  1 :00:1d.0
> >
> > Bus 001 Device 002: ID 8087:8008 Intel Corp.
> >
> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > iproduct 2 EHCI Host Controller
> > iSerial  1 :00:1a.0
> >
> > Bus 004 Device 002: ID 04e8:61f5 Samsung Electronics Co., Ltd
> >
> > Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> > iProduct 2 xHCI Host Controller
> > iSerial  1 :00:14.0
> >
> > Bus 003 Device 007: ID 1770:ff00
> >
> > Bus 003 Device 005: ID 8087:07dc Intel Corp.
> >
> > Bus 003 Device 004: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse
> 6000 receiver
> >
> > Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > iProduct 2 xHCI Host Controller
> > iSerial  1 :00:14.0
> >
>
> Without knowing your laptop or exact setup I'm working a bit blind.
> I think you say you have a usbVM and are running qubes from a USB stick
> - is that right?
> You haven't said *which* controller your ports all use.
>
> From the listing it's clear you have usb2 and usb3 controllers, and it
> may be that ALL your ports are 2/3. More info needed please.
> I'll throw out some wild suggestions:
>
> Hide one of the controllers on the kernel command line(say the xhci).
> Disable ehci in usbVM, and use only USB3 devices with the usbVM.
>
> It might be possible to delete one of the devices in dom0, and still have
> it available in qubes. (I mean literally rm /dev/bus/usb/001)
>
> You could unbind a pci device early in boot. I've done this with Xen
> before, to have one port in dom0 and the rest available to xen-pciback,
> but haven't tried it with Qubes.
>
> You could use udev to block two of the ports in dom0, so that they are
> only available in the usbVM.
>
> unman
>
> --
> 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/20181010141825.hstxmzkgm6sdh3x3%40thirdeyesecurity.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 

Re: [qubes-users] Changing USB Controllers

2018-10-10 Thread unman
On Mon, Oct 08, 2018 at 07:27:23PM -0700, Alex Winter wrote:
> Here are the usb controllers when I type in 'sudo lspci -v' 
> 
> 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family 
> USb xHCI (Rev 05) (prog-if 30 [XHCI])
>  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
>  Flags: bus master, medium devsel, latency 0, IRQ 57
>  Memory at f7b0 (64-bit, non-prefetchable) [size=64k]
>  Capabilities: [70] Power Management version 2
>  Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
>  Kernel driver in use: xhci_hcd
>  Kernel modules: xhci_pci
> 
> 00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family 
> USb EHCI #2 (Rev 05) (prog-if 20 [EHCI])
>  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
>  Flags: bus master, medium devsel, latency 0, IRQ 16
>  Memory at f7b18000 (32-bit, non-pcopy and pasterefetchable) [size=1k]
>  Capabilities: [50] Power Management version 2
>  Capabilities: [58] Debug port: BAR=1 offset=00a0
>  Capabilities: [98] PCI Advanced Features
>  Kernel driver in use: ehci-pci
>  Kernel modules: ehci_pci
> 
> 00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family 
> USb EHCI #1 (Rev 05) (prog-if 20 [EHCIReciever])
>  Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
>  Flags: bus master, medium devsel, latency 0, IRQ 23
>  Memory at f7b17000 (32-bit, non-prefetchable) [size=1k]
>  Capabilities: [50] Power Management version 2
>  Capabilities: [58] Debug port: BAR=1 offset=00a0
>  Capabilities: [98] PCI Advanced Features
>  Kernel driver in use: ehci-pci
>  Kernel modules: ehci_pci
> 
> when I type in 'sudo lsusb -v' Here are the buses.  
> 
> Bus 002 Device 002: ID 8087:8000 Intel Corp.
> 
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> iProduct 2 EHCI Host Controller
> iSerial  1 :00:1d.0
> 
> Bus 001 Device 002: ID 8087:8008 Intel Corp.
> 
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> iproduct 2 EHCI Host Controller
> iSerial  1 :00:1a.0
> 
> Bus 004 Device 002: ID 04e8:61f5 Samsung Electronics Co., Ltd
> 
> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> iProduct 2 xHCI Host Controller
> iSerial  1 :00:14.0
> 
> Bus 003 Device 007: ID 1770:ff00
> 
> Bus 003 Device 005: ID 8087:07dc Intel Corp.
> 
> Bus 003 Device 004: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse 6000 
> receiver
> 
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> iProduct 2 xHCI Host Controller
> iSerial  1 :00:14.0
> 

Without knowing your laptop or exact setup I'm working a bit blind.
I think you say you have a usbVM and are running qubes from a USB stick
- is that right?
You haven't said *which* controller your ports all use.

>From the listing it's clear you have usb2 and usb3 controllers, and it
may be that ALL your ports are 2/3. More info needed please.
I'll throw out some wild suggestions:

Hide one of the controllers on the kernel command line(say the xhci).
Disable ehci in usbVM, and use only USB3 devices with the usbVM.

It might be possible to delete one of the devices in dom0, and still have
it available in qubes. (I mean literally rm /dev/bus/usb/001)

You could unbind a pci device early in boot. I've done this with Xen
before, to have one port in dom0 and the rest available to xen-pciback,
but haven't tried it with Qubes.

You could use udev to block two of the ports in dom0, so that they are
only available in the usbVM.

unman

-- 
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/20181010141825.hstxmzkgm6sdh3x3%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Changing USB Controllers

2018-10-08 Thread Alex Winter
Here are the usb controllers when I type in 'sudo lspci -v' 

00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family 
USb xHCI (Rev 05) (prog-if 30 [XHCI])
 Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
 Flags: bus master, medium devsel, latency 0, IRQ 57
 Memory at f7b0 (64-bit, non-prefetchable) [size=64k]
 Capabilities: [70] Power Management version 2
 Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
 Kernel driver in use: xhci_hcd
 Kernel modules: xhci_pci

00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family 
USb EHCI #2 (Rev 05) (prog-if 20 [EHCI])
 Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
 Flags: bus master, medium devsel, latency 0, IRQ 16
 Memory at f7b18000 (32-bit, non-pcopy and pasterefetchable) [size=1k]
 Capabilities: [50] Power Management version 2
 Capabilities: [58] Debug port: BAR=1 offset=00a0
 Capabilities: [98] PCI Advanced Features
 Kernel driver in use: ehci-pci
 Kernel modules: ehci_pci

00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family 
USb EHCI #1 (Rev 05) (prog-if 20 [EHCIReciever])
 Subsystem: Micro-Star International Co., Ltd. [MSI] Device 10ec
 Flags: bus master, medium devsel, latency 0, IRQ 23
 Memory at f7b17000 (32-bit, non-prefetchable) [size=1k]
 Capabilities: [50] Power Management version 2
 Capabilities: [58] Debug port: BAR=1 offset=00a0
 Capabilities: [98] PCI Advanced Features
 Kernel driver in use: ehci-pci
 Kernel modules: ehci_pci

when I type in 'sudo lsusb -v' Here are the buses.  

Bus 002 Device 002: ID 8087:8000 Intel Corp.

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
iProduct 2 EHCI Host Controller
iSerial  1 :00:1d.0

Bus 001 Device 002: ID 8087:8008 Intel Corp.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
iproduct 2 EHCI Host Controller
iSerial  1 :00:1a.0

Bus 004 Device 002: ID 04e8:61f5 Samsung Electronics Co., Ltd

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
iProduct 2 xHCI Host Controller
iSerial  1 :00:14.0

Bus 003 Device 007: ID 1770:ff00

Bus 003 Device 005: ID 8087:07dc Intel Corp.

Bus 003 Device 004: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse 6000 
receiver

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
iProduct 2 xHCI Host Controller
iSerial  1 :00:14.0



-- 
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/cc49162d-7fc8-4064-8b25-edece724e1e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Changing USB Controllers

2018-10-08 Thread unman
On Sun, Oct 07, 2018 at 06:31:04PM -0700, alexw8...@gmail.com wrote:
> Hello, I have qubes (r4.0) installed on a USB.  I have 3 USB Controllers on 
> my laptop.  When I am running qubes and try attaching a USB device,  it 
> always uses the same USB Controller(the usb qubes is installed/dom0) 
> regardless of the USB port I am using.
> 
> Is there a way to switch this?  I wanted to try and create a USB qube just 
> for untrusted usb devices.  I know I cant use the one dom0 is on but I have 
> two more controllers I would like to utilize if possible for this. 
> 

Are you sure you have 3 controllers? Many laptops only have one.
It sounds as if you have 1 controller and 3 attached ports. You can't
change this without hardware modification. 
Some laptops have controllers allocated to "internal" devices like
mouse/keyboard, but not to external ports. Not much use to you.
Check the output of 'sudo lsusb -v' and 'sudo lspci -v'

unman

-- 
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/20181008134111.zd6wv4wff6tzzqrc%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Changing USB Controllers

2018-10-07 Thread alexw8913
Hello, I have qubes (r4.0) installed on a USB.  I have 3 USB Controllers on my 
laptop.  When I am running qubes and try attaching a USB device,  it always 
uses the same USB Controller(the usb qubes is installed/dom0) regardless of the 
USB port I am using.

Is there a way to switch this?  I wanted to try and create a USB qube just for 
untrusted usb devices.  I know I cant use the one dom0 is on but I have two 
more controllers I would like to utilize if possible for this. 

-- 
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/b6bede4f-32d3-4c8d-8ed3-8b15a5bd499d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.