Re: [Qemu-devel] [PATCH v3] NVMe: Initial commit

2013-04-03 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Tue, Mar 19, 2013 at 01:41:53PM -0600, Keith Busch wrote: >> +static int nvme_init(PCIDevice *pci_dev) >> +{ >> +NvmeCtrl *n = NVME(pci_dev); >> +NvmeIdCtrl *id = &n->id_ctrl; >> + >> +int i; >> +int64_t bs_size; >> +char serial[sizeof(id->sn)]; >>

Re: [Qemu-devel] [PATCH v3] NVMe: Initial commit

2013-03-20 Thread Stefan Hajnoczi
On Tue, Mar 19, 2013 at 01:41:53PM -0600, Keith Busch wrote: > +static int nvme_init(PCIDevice *pci_dev) > +{ > +NvmeCtrl *n = NVME(pci_dev); > +NvmeIdCtrl *id = &n->id_ctrl; > + > +int i; > +int64_t bs_size; > +char serial[sizeof(id->sn)]; > +uint8_t *pci_conf; > + > +i

[Qemu-devel] [PATCH v3] NVMe: Initial commit

2013-03-19 Thread Keith Busch
Initial commit for emulated nvme pci device. Implements the minimum from the specification to work with existing drivers. Cc: Keith Busch Signed-off-by: Keith Busch Just going for the simplest patch possible for this device. If this is okay, the remainining features implementing the full specif