lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130702142420.GC14630@netboy>
Date:	Tue, 2 Jul 2013 16:24:20 +0200
From:	Richard Cochran <richardcochran@...il.com>
To:	Ben Hutchings <bhutchings@...arflare.com>
Cc:	linux-net-drivers <linux-net-drivers@...arflare.com>,
	netdev <netdev@...r.kernel.org>
Subject: Re: PHC device sharing between PCI functions

Ben,

I really don't understand what the use case is...

On Mon, Jul 01, 2013 at 05:56:08PM +0100, Ben Hutchings wrote:
> Future Solarflare NICs may allow multiple PCI functions to make use of a
> PTP hardware clock, but without a separate clock per function (probably
> only one per controller).
> 
> I understand that shared PTP hardware clocks already exist, but they
> usually have an independent existence as a separate PCI or platform
> device.  In this case the clock would be accessible through any of the
> PCI functions that also have a net device.
> 
> Options I see are:
> 
> 1. Instantiate a clock only for the first function.  But that would
> preclude making the clock available within multiple VMs and their host.

So, I guess PCI functions on one card may be divided up among the
guests in a VM environment?

Even if you did make your one clock visible to mutiple guests, still
only one would be able to adjust the clock, right?

And if so, then how will the mutiple, read-only MAC clocks help other
guests? Seems kinda useless to me.
 
> 3. Keep track of controllers in the driver, instantiate a 'platform
> device' for each of them, and instantiate a clock for each of them.
> This is a little weird, as it wouldn't have any obvious association to
> the PCI device hierarchy.  But it would let us control the lifetime of
> the clock devices independently of any one function.

I think clock and MAC must go hand in hand. Does one card appear as a
MAC in more than one VM?

> I prefer option 3 as I dislike introducing special cases, but I would be
> interested to hear your (or other people's) opinion on this.

Sorry, my brain just isn't letting any of this in.

Thanks,
Richard
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ