lguest_net.c 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /*D:500
  2. * The Guest network driver.
  3. *
  4. * This is very simple a virtual network driver, and our last Guest driver.
  5. * The only trick is that it can talk directly to multiple other recipients
  6. * (ie. other Guests on the same network). It can also be used with only the
  7. * Host on the network.
  8. :*/
  9. /* Copyright 2006 Rusty Russell <rusty@rustcorp.com.au> IBM Corporation
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  24. */
  25. //#define DEBUG
  26. #include <linux/netdevice.h>
  27. #include <linux/etherdevice.h>
  28. #include <linux/module.h>
  29. #include <linux/mm_types.h>
  30. #include <linux/io.h>
  31. #include <linux/lguest_bus.h>
  32. #define SHARED_SIZE PAGE_SIZE
  33. #define MAX_LANS 4
  34. #define NUM_SKBS 8
  35. /*M:011 Network code master Jeff Garzik points out numerous shortcomings in
  36. * this driver if it aspires to greatness.
  37. *
  38. * Firstly, it doesn't use "NAPI": the networking's New API, and is poorer for
  39. * it. As he says "NAPI means system-wide load leveling, across multiple
  40. * network interfaces. Lack of NAPI can mean competition at higher loads."
  41. *
  42. * He also points out that we don't implement set_mac_address, so users cannot
  43. * change the devices hardware address. When I asked why one would want to:
  44. * "Bonding, and situations where you /do/ want the MAC address to "leak" out
  45. * of the host onto the wider net."
  46. *
  47. * Finally, he would like module unloading: "It is not unrealistic to think of
  48. * [un|re|]loading the net support module in an lguest guest. And, adding
  49. * module support makes the programmer more responsible, because they now have
  50. * to learn to clean up after themselves. Any driver that cannot clean up
  51. * after itself is an incomplete driver in my book."
  52. :*/
  53. /*D:530 The "struct lguestnet_info" contains all the information we need to
  54. * know about the network device. */
  55. struct lguestnet_info
  56. {
  57. /* The mapped device page(s) (an array of "struct lguest_net"). */
  58. struct lguest_net *peer;
  59. /* The physical address of the device page(s) */
  60. unsigned long peer_phys;
  61. /* The size of the device page(s). */
  62. unsigned long mapsize;
  63. /* The lguest_device I come from */
  64. struct lguest_device *lgdev;
  65. /* My peerid (ie. my slot in the array). */
  66. unsigned int me;
  67. /* Receive queue: the network packets waiting to be filled. */
  68. struct sk_buff *skb[NUM_SKBS];
  69. struct lguest_dma dma[NUM_SKBS];
  70. };
  71. /*:*/
  72. /* How many bytes left in this page. */
  73. static unsigned int rest_of_page(void *data)
  74. {
  75. return PAGE_SIZE - ((unsigned long)data % PAGE_SIZE);
  76. }
  77. /*D:570 Each peer (ie. Guest or Host) on the network binds their receive
  78. * buffers to a different key: we simply use the physical address of the
  79. * device's memory page plus the peer number. The Host insists that all keys
  80. * be a multiple of 4, so we multiply the peer number by 4. */
  81. static unsigned long peer_key(struct lguestnet_info *info, unsigned peernum)
  82. {
  83. return info->peer_phys + 4 * peernum;
  84. }
  85. /* This is the routine which sets up a "struct lguest_dma" to point to a
  86. * network packet, similar to req_to_dma() in lguest_blk.c. The structure of a
  87. * "struct sk_buff" has grown complex over the years: it consists of a "head"
  88. * linear section pointed to by "skb->data", and possibly an array of
  89. * "fragments" in the case of a non-linear packet.
  90. *
  91. * Our receive buffers don't use fragments at all but outgoing skbs might, so
  92. * we handle it. */
  93. static void skb_to_dma(const struct sk_buff *skb, unsigned int headlen,
  94. struct lguest_dma *dma)
  95. {
  96. unsigned int i, seg;
  97. /* First, we put the linear region into the "struct lguest_dma". Each
  98. * entry can't go over a page boundary, so even though all our packets
  99. * are 1514 bytes or less, we might need to use two entries here: */
  100. for (i = seg = 0; i < headlen; seg++, i += rest_of_page(skb->data+i)) {
  101. dma->addr[seg] = virt_to_phys(skb->data + i);
  102. dma->len[seg] = min((unsigned)(headlen - i),
  103. rest_of_page(skb->data + i));
  104. }
  105. /* Now we handle the fragments: at least they're guaranteed not to go
  106. * over a page. skb_shinfo(skb) returns a pointer to the structure
  107. * which tells us about the number of fragments and the fragment
  108. * array. */
  109. for (i = 0; i < skb_shinfo(skb)->nr_frags; i++, seg++) {
  110. const skb_frag_t *f = &skb_shinfo(skb)->frags[i];
  111. /* Should not happen with MTU less than 64k - 2 * PAGE_SIZE. */
  112. if (seg == LGUEST_MAX_DMA_SECTIONS) {
  113. /* We will end up sending a truncated packet should
  114. * this ever happen. Plus, a cool log message! */
  115. printk("Woah dude! Megapacket!\n");
  116. break;
  117. }
  118. dma->addr[seg] = page_to_phys(f->page) + f->page_offset;
  119. dma->len[seg] = f->size;
  120. }
  121. /* If after all that we didn't use the entire "struct lguest_dma"
  122. * array, we terminate it with a 0 length. */
  123. if (seg < LGUEST_MAX_DMA_SECTIONS)
  124. dma->len[seg] = 0;
  125. }
  126. /*
  127. * Packet transmission.
  128. *
  129. * Our packet transmission is a little unusual. A real network card would just
  130. * send out the packet and leave the receivers to decide if they're interested.
  131. * Instead, we look through the network device memory page and see if any of
  132. * the ethernet addresses match the packet destination, and if so we send it to
  133. * that Guest.
  134. *
  135. * This is made a little more complicated in two cases. The first case is
  136. * broadcast packets: for that we send the packet to all Guests on the network,
  137. * one at a time. The second case is "promiscuous" mode, where a Guest wants
  138. * to see all the packets on the network. We need a way for the Guest to tell
  139. * us it wants to see all packets, so it sets the "multicast" bit on its
  140. * published MAC address, which is never valid in a real ethernet address.
  141. */
  142. #define PROMISC_BIT 0x01
  143. /* This is the callback which is summoned whenever the network device's
  144. * multicast or promiscuous state changes. If the card is in promiscuous mode,
  145. * we advertise that in our ethernet address in the device's memory. We do the
  146. * same if Linux wants any or all multicast traffic. */
  147. static void lguestnet_set_multicast(struct net_device *dev)
  148. {
  149. struct lguestnet_info *info = netdev_priv(dev);
  150. if ((dev->flags & (IFF_PROMISC|IFF_ALLMULTI)) || dev->mc_count)
  151. info->peer[info->me].mac[0] |= PROMISC_BIT;
  152. else
  153. info->peer[info->me].mac[0] &= ~PROMISC_BIT;
  154. }
  155. /* A simple test function to see if a peer wants to see all packets.*/
  156. static int promisc(struct lguestnet_info *info, unsigned int peer)
  157. {
  158. return info->peer[peer].mac[0] & PROMISC_BIT;
  159. }
  160. /* Another simple function to see if a peer's advertised ethernet address
  161. * matches a packet's destination ethernet address. */
  162. static int mac_eq(const unsigned char mac[ETH_ALEN],
  163. struct lguestnet_info *info, unsigned int peer)
  164. {
  165. /* Ignore multicast bit, which peer turns on to mean promisc. */
  166. if ((info->peer[peer].mac[0] & (~PROMISC_BIT)) != mac[0])
  167. return 0;
  168. return memcmp(mac+1, info->peer[peer].mac+1, ETH_ALEN-1) == 0;
  169. }
  170. /* This is the function which actually sends a packet once we've decided a
  171. * peer wants it: */
  172. static void transfer_packet(struct net_device *dev,
  173. struct sk_buff *skb,
  174. unsigned int peernum)
  175. {
  176. struct lguestnet_info *info = netdev_priv(dev);
  177. struct lguest_dma dma;
  178. /* We use our handy "struct lguest_dma" packing function to prepare
  179. * the skb for sending. */
  180. skb_to_dma(skb, skb_headlen(skb), &dma);
  181. pr_debug("xfer length %04x (%u)\n", htons(skb->len), skb->len);
  182. /* This is the actual send call which copies the packet. */
  183. lguest_send_dma(peer_key(info, peernum), &dma);
  184. /* Check that the entire packet was transmitted. If not, it could mean
  185. * that the other Guest registered a short receive buffer, but this
  186. * driver should never do that. More likely, the peer is dead. */
  187. if (dma.used_len != skb->len) {
  188. dev->stats.tx_carrier_errors++;
  189. pr_debug("Bad xfer to peer %i: %i of %i (dma %p/%i)\n",
  190. peernum, dma.used_len, skb->len,
  191. (void *)dma.addr[0], dma.len[0]);
  192. } else {
  193. /* On success we update the stats. */
  194. dev->stats.tx_bytes += skb->len;
  195. dev->stats.tx_packets++;
  196. }
  197. }
  198. /* Another helper function to tell is if a slot in the device memory is unused.
  199. * Since we always set the Local Assignment bit in the ethernet address, the
  200. * first byte can never be 0. */
  201. static int unused_peer(const struct lguest_net peer[], unsigned int num)
  202. {
  203. return peer[num].mac[0] == 0;
  204. }
  205. /* Finally, here is the routine which handles an outgoing packet. It's called
  206. * "start_xmit" for traditional reasons. */
  207. static int lguestnet_start_xmit(struct sk_buff *skb, struct net_device *dev)
  208. {
  209. unsigned int i;
  210. int broadcast;
  211. struct lguestnet_info *info = netdev_priv(dev);
  212. /* Extract the destination ethernet address from the packet. */
  213. const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest;
  214. DECLARE_MAC_BUF(mac);
  215. pr_debug("%s: xmit %s\n", dev->name, print_mac(mac, dest));
  216. /* If it's a multicast packet, we broadcast to everyone. That's not
  217. * very efficient, but there are very few applications which actually
  218. * use multicast, which is a shame really.
  219. *
  220. * As etherdevice.h points out: "By definition the broadcast address is
  221. * also a multicast address." So we don't have to test for broadcast
  222. * packets separately. */
  223. broadcast = is_multicast_ether_addr(dest);
  224. /* Look through all the published ethernet addresses to see if we
  225. * should send this packet. */
  226. for (i = 0; i < info->mapsize/sizeof(struct lguest_net); i++) {
  227. /* We don't send to ourselves (we actually can't SEND_DMA to
  228. * ourselves anyway), and don't send to unused slots.*/
  229. if (i == info->me || unused_peer(info->peer, i))
  230. continue;
  231. /* If it's broadcast we send it. If they want every packet we
  232. * send it. If the destination matches their address we send
  233. * it. Otherwise we go to the next peer. */
  234. if (!broadcast && !promisc(info, i) && !mac_eq(dest, info, i))
  235. continue;
  236. pr_debug("lguestnet %s: sending from %i to %i\n",
  237. dev->name, info->me, i);
  238. /* Our routine which actually does the transfer. */
  239. transfer_packet(dev, skb, i);
  240. }
  241. /* An xmit routine is expected to dispose of the packet, so we do. */
  242. dev_kfree_skb(skb);
  243. /* As per kernel convention, 0 means success. This is why I love
  244. * networking: even if we never sent to anyone, that's still
  245. * success! */
  246. return 0;
  247. }
  248. /*D:560
  249. * Packet receiving.
  250. *
  251. * First, here's a helper routine which fills one of our array of receive
  252. * buffers: */
  253. static int fill_slot(struct net_device *dev, unsigned int slot)
  254. {
  255. struct lguestnet_info *info = netdev_priv(dev);
  256. /* We can receive ETH_DATA_LEN (1500) byte packets, plus a standard
  257. * ethernet header of ETH_HLEN (14) bytes. */
  258. info->skb[slot] = netdev_alloc_skb(dev, ETH_HLEN + ETH_DATA_LEN);
  259. if (!info->skb[slot]) {
  260. printk("%s: could not fill slot %i\n", dev->name, slot);
  261. return -ENOMEM;
  262. }
  263. /* skb_to_dma() is a helper which sets up the "struct lguest_dma" to
  264. * point to the data in the skb: we also use it for sending out a
  265. * packet. */
  266. skb_to_dma(info->skb[slot], ETH_HLEN + ETH_DATA_LEN, &info->dma[slot]);
  267. /* This is a Write Memory Barrier: it ensures that the entry in the
  268. * receive buffer array is written *before* we set the "used_len" entry
  269. * to 0. If the Host were looking at the receive buffer array from a
  270. * different CPU, it could potentially see "used_len = 0" and not see
  271. * the updated receive buffer information. This would be a horribly
  272. * nasty bug, so make sure the compiler and CPU know this has to happen
  273. * first. */
  274. wmb();
  275. /* Writing 0 to "used_len" tells the Host it can use this receive
  276. * buffer now. */
  277. info->dma[slot].used_len = 0;
  278. return 0;
  279. }
  280. /* This is the actual receive routine. When we receive an interrupt from the
  281. * Host to tell us a packet has been delivered, we arrive here: */
  282. static irqreturn_t lguestnet_rcv(int irq, void *dev_id)
  283. {
  284. struct net_device *dev = dev_id;
  285. struct lguestnet_info *info = netdev_priv(dev);
  286. unsigned int i, done = 0;
  287. /* Look through our entire receive array for an entry which has data
  288. * in it. */
  289. for (i = 0; i < ARRAY_SIZE(info->dma); i++) {
  290. unsigned int length;
  291. struct sk_buff *skb;
  292. length = info->dma[i].used_len;
  293. if (length == 0)
  294. continue;
  295. /* We've found one! Remember the skb (we grabbed the length
  296. * above), and immediately refill the slot we've taken it
  297. * from. */
  298. done++;
  299. skb = info->skb[i];
  300. fill_slot(dev, i);
  301. /* This shouldn't happen: micropackets could be sent by a
  302. * badly-behaved Guest on the network, but the Host will never
  303. * stuff more data in the buffer than the buffer length. */
  304. if (length < ETH_HLEN || length > ETH_HLEN + ETH_DATA_LEN) {
  305. pr_debug(KERN_WARNING "%s: unbelievable skb len: %i\n",
  306. dev->name, length);
  307. dev_kfree_skb(skb);
  308. continue;
  309. }
  310. /* skb_put(), what a great function! I've ranted about this
  311. * function before (http://lkml.org/lkml/1999/9/26/24). You
  312. * call it after you've added data to the end of an skb (in
  313. * this case, it was the Host which wrote the data). */
  314. skb_put(skb, length);
  315. /* The ethernet header contains a protocol field: we use the
  316. * standard helper to extract it, and place the result in
  317. * skb->protocol. The helper also sets up skb->pkt_type and
  318. * eats up the ethernet header from the front of the packet. */
  319. skb->protocol = eth_type_trans(skb, dev);
  320. /* If this device doesn't need checksums for sending, we also
  321. * don't need to check the packets when they come in. */
  322. if (dev->features & NETIF_F_NO_CSUM)
  323. skb->ip_summed = CHECKSUM_UNNECESSARY;
  324. /* As a last resort for debugging the driver or the lguest I/O
  325. * subsystem, you can uncomment the "#define DEBUG" at the top
  326. * of this file, which turns all the pr_debug() into printk()
  327. * and floods the logs. */
  328. pr_debug("Receiving skb proto 0x%04x len %i type %i\n",
  329. ntohs(skb->protocol), skb->len, skb->pkt_type);
  330. /* Update the packet and byte counts (visible from ifconfig,
  331. * and good for debugging). */
  332. dev->stats.rx_bytes += skb->len;
  333. dev->stats.rx_packets++;
  334. /* Hand our fresh network packet into the stack's "network
  335. * interface receive" routine. That will free the packet
  336. * itself when it's finished. */
  337. netif_rx(skb);
  338. }
  339. /* If we found any packets, we assume the interrupt was for us. */
  340. return done ? IRQ_HANDLED : IRQ_NONE;
  341. }
  342. /*D:550 This is where we start: when the device is brought up by dhcpd or
  343. * ifconfig. At this point we advertise our MAC address to the rest of the
  344. * network, and register receive buffers ready for incoming packets. */
  345. static int lguestnet_open(struct net_device *dev)
  346. {
  347. int i;
  348. struct lguestnet_info *info = netdev_priv(dev);
  349. /* Copy our MAC address into the device page, so others on the network
  350. * can find us. */
  351. memcpy(info->peer[info->me].mac, dev->dev_addr, ETH_ALEN);
  352. /* We might already be in promisc mode (dev->flags & IFF_PROMISC). Our
  353. * set_multicast callback handles this already, so we call it now. */
  354. lguestnet_set_multicast(dev);
  355. /* Allocate packets and put them into our "struct lguest_dma" array.
  356. * If we fail to allocate all the packets we could still limp along,
  357. * but it's a sign of real stress so we should probably give up now. */
  358. for (i = 0; i < ARRAY_SIZE(info->dma); i++) {
  359. if (fill_slot(dev, i) != 0)
  360. goto cleanup;
  361. }
  362. /* Finally we tell the Host where our array of "struct lguest_dma"
  363. * receive buffers is, binding it to the key corresponding to the
  364. * device's physical memory plus our peerid. */
  365. if (lguest_bind_dma(peer_key(info,info->me), info->dma,
  366. NUM_SKBS, lgdev_irq(info->lgdev)) != 0)
  367. goto cleanup;
  368. return 0;
  369. cleanup:
  370. while (--i >= 0)
  371. dev_kfree_skb(info->skb[i]);
  372. return -ENOMEM;
  373. }
  374. /*:*/
  375. /* The close routine is called when the device is no longer in use: we clean up
  376. * elegantly. */
  377. static int lguestnet_close(struct net_device *dev)
  378. {
  379. unsigned int i;
  380. struct lguestnet_info *info = netdev_priv(dev);
  381. /* Clear all trace of our existence out of the device memory by setting
  382. * the slot which held our MAC address to 0 (unused). */
  383. memset(&info->peer[info->me], 0, sizeof(info->peer[info->me]));
  384. /* Unregister our array of receive buffers */
  385. lguest_unbind_dma(peer_key(info, info->me), info->dma);
  386. for (i = 0; i < ARRAY_SIZE(info->dma); i++)
  387. dev_kfree_skb(info->skb[i]);
  388. return 0;
  389. }
  390. /*D:510 The network device probe function is basically a standard ethernet
  391. * device setup. It reads the "struct lguest_device_desc" and sets the "struct
  392. * net_device". Oh, the line-by-line excitement! Let's skip over it. :*/
  393. static int lguestnet_probe(struct lguest_device *lgdev)
  394. {
  395. int err, irqf = IRQF_SHARED;
  396. struct net_device *dev;
  397. struct lguestnet_info *info;
  398. struct lguest_device_desc *desc = &lguest_devices[lgdev->index];
  399. pr_debug("lguest_net: probing for device %i\n", lgdev->index);
  400. dev = alloc_etherdev(sizeof(struct lguestnet_info));
  401. if (!dev)
  402. return -ENOMEM;
  403. /* Ethernet defaults with some changes */
  404. ether_setup(dev);
  405. dev->set_mac_address = NULL;
  406. dev->dev_addr[0] = 0x02; /* set local assignment bit (IEEE802) */
  407. dev->dev_addr[1] = 0x00;
  408. memcpy(&dev->dev_addr[2], &lguest_data.guestid, 2);
  409. dev->dev_addr[4] = 0x00;
  410. dev->dev_addr[5] = 0x00;
  411. dev->open = lguestnet_open;
  412. dev->stop = lguestnet_close;
  413. dev->hard_start_xmit = lguestnet_start_xmit;
  414. /* We don't actually support multicast yet, but turning on/off
  415. * promisc also calls dev->set_multicast_list. */
  416. dev->set_multicast_list = lguestnet_set_multicast;
  417. SET_NETDEV_DEV(dev, &lgdev->dev);
  418. /* The network code complains if you have "scatter-gather" capability
  419. * if you don't also handle checksums (it seem that would be
  420. * "illogical"). So we use a lie of omission and don't tell it that we
  421. * can handle scattered packets unless we also don't want checksums,
  422. * even though to us they're completely independent. */
  423. if (desc->features & LGUEST_NET_F_NOCSUM)
  424. dev->features = NETIF_F_SG|NETIF_F_NO_CSUM;
  425. info = netdev_priv(dev);
  426. info->mapsize = PAGE_SIZE * desc->num_pages;
  427. info->peer_phys = ((unsigned long)desc->pfn << PAGE_SHIFT);
  428. info->lgdev = lgdev;
  429. info->peer = lguest_map(info->peer_phys, desc->num_pages);
  430. if (!info->peer) {
  431. err = -ENOMEM;
  432. goto free;
  433. }
  434. /* This stores our peerid (upper bits reserved for future). */
  435. info->me = (desc->features & (info->mapsize-1));
  436. err = register_netdev(dev);
  437. if (err) {
  438. pr_debug("lguestnet: registering device failed\n");
  439. goto unmap;
  440. }
  441. if (lguest_devices[lgdev->index].features & LGUEST_DEVICE_F_RANDOMNESS)
  442. irqf |= IRQF_SAMPLE_RANDOM;
  443. if (request_irq(lgdev_irq(lgdev), lguestnet_rcv, irqf, "lguestnet",
  444. dev) != 0) {
  445. pr_debug("lguestnet: cannot get irq %i\n", lgdev_irq(lgdev));
  446. goto unregister;
  447. }
  448. pr_debug("lguestnet: registered device %s\n", dev->name);
  449. /* Finally, we put the "struct net_device" in the generic "struct
  450. * lguest_device"s private pointer. Again, it's not necessary, but
  451. * makes sure the cool kernel kids don't tease us. */
  452. lgdev->private = dev;
  453. return 0;
  454. unregister:
  455. unregister_netdev(dev);
  456. unmap:
  457. lguest_unmap(info->peer);
  458. free:
  459. free_netdev(dev);
  460. return err;
  461. }
  462. static struct lguest_driver lguestnet_drv = {
  463. .name = "lguestnet",
  464. .owner = THIS_MODULE,
  465. .device_type = LGUEST_DEVICE_T_NET,
  466. .probe = lguestnet_probe,
  467. };
  468. static __init int lguestnet_init(void)
  469. {
  470. return register_lguest_driver(&lguestnet_drv);
  471. }
  472. module_init(lguestnet_init);
  473. MODULE_DESCRIPTION("Lguest network driver");
  474. MODULE_LICENSE("GPL");
  475. /*D:580
  476. * This is the last of the Drivers, and with this we have covered the many and
  477. * wonderous and fine (and boring) details of the Guest.
  478. *
  479. * "make Launcher" beckons, where we answer questions like "Where do Guests
  480. * come from?", and "What do you do when someone asks for optimization?"
  481. */