Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Mar 2016 10:44:44 +0000
From:      "mav (Alexander Motin)" <phabric-noreply@FreeBSD.org>
To:        freebsd-virtualization@freebsd.org
Subject:   [Differential] [Commented On] D5473: ATA/ATAPI6 device emulation in bhyve
Message-ID:  <f44e4651d286d12e7c5f1a87a1612df2@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-2t5o3zrdohcj7mowtyki-req@FreeBSD.org>
References:  <differential-rev-PHID-DREV-2t5o3zrdohcj7mowtyki-req@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f44e4651d286d12e7c5f1a87a1612df2>