[Differential] [Commented On] D5473: ATA/ATAPI6 device emulation in bhyve

2016-03-02 Thread iateaca (Teaca)
iateaca added a comment.


  In https://reviews.freebsd.org/D5473#117481, @grehan wrote:
  
  > Support for legacy o/s's has driven much of bhyve development. I'm all for 
this, though I agree there should be some consolidation of code that could be 
shared between ATA/ATAPI and AHCI.
  
  
  Do you propose to postpone the review until we combine somehow the ATA/ATAPI 
and AHCI ?

REVISION DETAIL
  https://reviews.freebsd.org/D5473

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: iateaca, neel, tychon, mav, grehan
Cc: freebsd-virtualization-list
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


[Differential] [Commented On] D5473: ATA/ATAPI6 device emulation in bhyve

2016-03-01 Thread iateaca (Teaca)
iateaca added a comment.


  In https://reviews.freebsd.org/D5473#117352, @mav wrote:
  
  > In https://reviews.freebsd.org/D5473#117346, @iateaca wrote:
  >
  > > The motivation is to run older versions of operating systems such as 
FreeBSD 4 which does not have AHCI drivers.
  > >  What do you mean by code duplication ? I think only the ATAPI CDROM 
logic could be common but the current implementation from AHCI can not be used 
with the ATA data strcutures. If we want to achive this, I think a redesign of 
AHCI ATAPI is required too.
  >
  >
  > I personally see quite little sense in supporting so old legacy guests. I 
agree that there can be "some cases", but I am not sure they worth the time 
spent and code size growth.  Other then legacy guests support this code does 
not give us anything useful -- legacy ATA will be by definition much slower and 
less functional then its AHCI counterpart.  It will require dozens of emulated 
register accesses per I/O, comparing to only several for AHCI, and won't 
support command queuing.
  >
  > Though obviously nice and clean unified implementation would look better.  
In your patch you are one more time reimplementing some subsets of ATA and 
ATAPI commands handling, already done much wider for AHCI. It would be much 
better to have single device emulation code, interfacing with different 
controller code parts.  But it would also take much more time (you are rigth 
that it would require existing code redesign), for the same little reason, so I 
am not sure how good is that idea. It needs investigation.
  
  
  Totally agree with you, there are no many reasons to use ATA instead of AHCI 
when you have support for it. Though I think there is a good reason having the 
ATA/ATAPI emulation in bhyve since Peter came with this idea.

REVISION DETAIL
  https://reviews.freebsd.org/D5473

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: iateaca, grehan, neel, tychon, mav
Cc: freebsd-virtualization-list
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


[Differential] [Commented On] D5473: ATA/ATAPI6 device emulation in bhyve

2016-03-01 Thread iateaca (Teaca)
iateaca added a comment.


  In https://reviews.freebsd.org/D5473#117324, @mav wrote:
  
  > It was definitely significant amount of work, but I am not sure what 
motivation was behind it.  Why do we need it after already having much more 
featured AHCI-based ATA/ATAPI emulation? Are there any significant OS not 
supporting AHCI? There is significant amount of code duplication between 
implementations, plus this one obviously requires more work to be complete.
  
  
  The motivation is to run older versions of operating systems such as FreeBSD 
4 which does not have AHCI drivers.
  What do you mean by code duplication ? I think only the ATAPI CDROM logic 
could be common but the current implementation from AHCI can not be used with 
the ATA data strcutures. If we want to achive this, I think a redesign of AHCI 
ATAPI is required too.

REVISION DETAIL
  https://reviews.freebsd.org/D5473

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: iateaca, grehan, neel, tychon, mav
Cc: freebsd-virtualization-list
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


[Differential] [Commented On] D5473: ATA/ATAPI6 device emulation in bhyve

2016-03-01 Thread mav (Alexander Motin)
mav added a comment.


  In https://reviews.freebsd.org/D5473#117346, @iateaca wrote:
  
  > The motivation is to run older versions of operating systems such as 
FreeBSD 4 which does not have AHCI drivers.
  >  What do you mean by code duplication ? I think only the ATAPI CDROM logic 
could be common but the current implementation from AHCI can not be used with 
the ATA data strcutures. If we want to achive this, I think a redesign of AHCI 
ATAPI is required too.
  
  
  I personally see quite little sense in supporting so old legacy guests. I 
agree that there can be "some cases", but I am not sure they worth the time 
spent and code size growth.  Other then legacy guests support this code does 
not give us anything useful -- legacy ATA will be by definition much slower and 
less functional then its AHCI counterpart.  It will require dozens of emulated 
register accesses per I/O, comparing to only several for AHCI, and won't 
support command queuing.
  
  Though obviously nice and clean unified implementation would look better.  In 
your patch you are one more time reimplementing some subsets of ATA and ATAPI 
commands handling, already done much wider for AHCI. It would be much better to 
have single device emulation code, interfacing with different controller code 
parts.  But it would also take much more time (you are rigth that it would 
require existing code redesign), for the same little reason, so I am not sure 
how good is that idea. It needs investigation.

REVISION DETAIL
  https://reviews.freebsd.org/D5473

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: iateaca, grehan, neel, tychon, mav
Cc: freebsd-virtualization-list
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"